[SOLVED] Cannot update to release 39 likely because of no space in /root
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cannot update to release 39 likely because of no space in /root
I still haven't updated my Fedora installation to the current 39 and would like to do so before 40 is released. Somehow it didn't work via GUI Software so I tried a command line upgrade.
Code:
sudo dnf upgrade --refresh
failed with the following output
Code:
[MIRROR] vim-common-9.1.181-1.fc38.x86_64.rpm: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
[FAILED] vim-common-9.1.181-1.fc38.x86_64.rpm: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
(1072-1073/1121): th 84% [================- ] 23 MB/s | 2.0 GB 00:16 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Error downloading packages:
vim-common-2:9.1.181-1.fc38.x86_64: Download failed: Curl error (23): Failed writing received data to disk/application for http://mirror.yandex.ru/fedora/linux/updates/38/Everything/x86_64/Packages/v/vim-common-9.1.181-1.fc38.x86_64.rpm [Failure writing output to destination]
and it doesn't allow me to procedure with the upgrade further
Code:
[hasek@fedora-laptop ~]$ sudo dnf system-upgrade reboot
[sudo] password for hasek:
Error: system is not ready for upgrade
Furthermore I suspect an additional problem may be that I have a very low space available in /root
Code:
[hasek@fedora-laptop ~]$ sudo du -hs /*
4.0K /afs
0 /bin
324M /boot
0 /dev
37M /etc
138G /home
0 /lib
0 /lib64
16K /lost+found
8.0K /media
4.0K /mnt
8.1G /opt
du: cannot access '/proc/9679/task/9679/fd/3': No such file or directory
du: cannot access '/proc/9679/task/9679/fdinfo/3': No such file or directory
du: cannot access '/proc/9679/fd/3': No such file or directory
du: cannot access '/proc/9679/fdinfo/3': No such file or directory
0 /proc
62M /root
du: cannot access '/run/user/1000/doc': Permission denied
du: cannot access '/run/user/1000/gvfs': Permission denied
2.2M /run
0 /sbin
4.0K /srv
0 /sys
8.0K /tmp
17G /usr
44G /var
Can anybody kindly walk me through cleaning possible temporary logs or whatever it may be taking disk space in /root/ and how to proceed with completing the system upgrade?
There is nothing unusual with the du output you ran. I get the same output when I run it. Why do you thing that the /root user directory is full as nothing is shown for it in your output.
What happened when you ran the suggested command: dnf clean packages
The output shows a little over 200GB used so how large is the drive?
Running df -h / should show the size, space used and available for the / filesystem partition.
I believe the OP was referring to the /(root) partition and not root's home directory. By default Fedora creates a separate /boot partition with LVM volumes for / and swap. As posted without seeing the output of df we can not tell if / is full or not.
I believe the OP was referring to the /(root) partition and not root's home directory
As did I but better to know than to guess. Your / partition is full so you need to delete or move data. First place tostart would be /var/log to see if you have a lot of large log files. Your /home partition is 94% full so basically, you need new drives. You will have problems very soon with your /home partition.
That is my recommendation also. NVME drives are not that expensive all the way up to 1TB anymore. Time to upgrade!
{edited} should add, try cleaning. If that doesn't work, then backup data you want to save on an external drive and install 39, then restore data files.
you can use ncdu and also someone implemented a dtt (can be found somewhere in LQ too). But you know what can be removed.
69 GB should be enough for a clean install.
/ (root fs) and /home are both almost full, so probably you will need a new disk (if you want to keep everything).
Thanks to everyone here for guiding me the right way -- I did some digging down my files and the root of the problem was /var/cache/PackageKit/ taking up 26G of space. I cleaned it up using pckon as described here. I also uninstalled Matlab because I wasn't using it for several years and got about 5G more space in /opt/. It allowed me to upgrade to 39 and my disc usage stats look like this now
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.