You are not logged in.
While trying to update all my packages, I got this error:
error: Partition / too full: 117573 blocks needed, 28425 blocks free
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
Being a newbie, I am not too familiar with the error. I started getting these after when I re-installed Arch Linux in order to use a separate partition for /home. Before this, I was able to resolve the error by clearing the cache via:
paccahe -r 1
But now, it doesn't work.
Last edited by goodboyneon (2023-07-05 03:51:03)
Offline
How are you determining that "evem though enough disk space is available"?
Offline
How are you determining that "evem though enough disk space is available"?
Apologies for the typo, I know I have enough disk space as this is the output of df:
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 4096 0 4096 0% /dev
tmpfs 3024724 18200 3006524 1% /dev/shm
tmpfs 1209892 9336 1200556 1% /run
/dev/sda2 19949168 18422928 487548 98% /
/dev/loop0 128 128 0 100% /var/lib/snapd/snap/bare/5
/dev/loop1 57088 57088 0 100% /var/lib/snapd/snap/core18/2751
/dev/loop2 64896 64896 0 100% /var/lib/snapd/snap/core20/1852
/dev/loop3 65024 65024 0 100% /var/lib/snapd/snap/core20/1891
/dev/loop4 57088 57088 0 100% /var/lib/snapd/snap/core18/2785
/dev/loop6 75648 75648 0 100% /var/lib/snapd/snap/core22/750
/dev/loop5 74752 74752 0 100% /var/lib/snapd/snap/core22/607
/dev/loop7 168832 168832 0 100% /var/lib/snapd/snap/gnome-3-28-1804/198
/dev/loop8 358144 358144 0 100% /var/lib/snapd/snap/gnome-3-38-2004/140
/dev/loop9 471808 471808 0 100% /var/lib/snapd/snap/gnome-42-2204/105
/dev/loop10 477824 477824 0 100% /var/lib/snapd/snap/gnome-42-2204/111
/dev/loop11 93952 93952 0 100% /var/lib/snapd/snap/gtk-common-themes/1535
/dev/loop12 89216 89216 0 100% /var/lib/snapd/snap/nordpass/162
/dev/loop13 89216 89216 0 100% /var/lib/snapd/snap/nordpass/163
/dev/loop14 54528 54528 0 100% /var/lib/snapd/snap/snapd/18933
/dev/loop15 54656 54656 0 100% /var/lib/snapd/snap/snapd/19361
/dev/loop16 160896 160896 0 100% /var/lib/snapd/snap/spotify/64
/dev/loop17 161664 161664 0 100% /var/lib/snapd/snap/spotify/67
tmpfs 3024728 12508 3012220 1% /tmp
/dev/sda1 522204 128668 393536 25% /boot
/dev/sda3 962737024 26893096 886865908 3% /home
tmpfs 604944 24 604920 1% /run/user/1000Last edited by goodboyneon (2023-07-03 02:44:59)
Offline
Please use [code][/code] tags, not "quote" tags. Edit your post in this regard (you'll see why)
The df output very clearly suggests that you're extremely short on space on the root partition - the difference is probably some temporary files, check df while you're getting the error.
Online
Please use [code][/code] tags, not "quote" tags. Edit your post in this regard (you'll see why)
The df output very clearly suggests that you're extremely short on space on the root partition - the difference is probably some temporary files, check df while you're getting the error.
Oh, I see, tag makes the font monospaced!
I thought the packages were stored in /home. Now, how do I add more space to the root directory? I definitely don't need the amount of space I have in /home.
Offline
https://wiki.archlinux.org/title/Parted … partitions
* Offline
* Involves moving the /home partition sda3, what is prone to data loss
* HAVE BACKUPS
* use the GUI frontend that abstracts the process, if you have tio ask how to repartition the disk, it's way less error-prone than you
Online
As a work around, you might try pacman -Sc and see how much space that clears up. It removes things from your pacman cache that are no longer installed. Having realized I 've not done this for a while, I just ran it and it cleared out about 80 GB.
The next step would be pacman -Scc which removes the entire cache. This means you cannot readily downgrade any installed packages. And, that space will fill up again over time as packages are upgraded.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
As a work around, you might try pacman -Sc and see how much space that clears up. It removes things from your pacman cache that are no longer installed. Having realized I 've not done this for a while, I just ran it and it cleared out about 80 GB.
The next step would be pacman -Scc which removes the entire cache. This means you cannot readily downgrade any installed packages. And, that space will fill up again over time as packages are upgraded.
That did work! Thanks for your tip
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Online
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
How do I edit the title? It's kind of hard to navigate the UI, I am unable to find the edit button
Offline
Lower right corner, https://bbs.archlinux.org/edit.php?id=2107601
Online