Article 5JD86 Trying to repair Ubuntu installation after upgrading on a full drive

Trying to repair Ubuntu installation after upgrading on a full drive

by
Hermani
from LinuxQuestions.org on (#5JD86)
Hi,

As a home server I run a Ubuntu 20.04 installation on a Pentium Gold 4c/4t processor with 16 GB of RAM.

Root is located on a SSD with 256 Gb on EXT4, with /home located on a BTRFS array. On the SSD I ran the Ubuntu installation as well as a couple of VM's and Docker containers. The SSD was filled to the brim as I did have a data backup somewhere on it that I forgot all about (it probably was a typo when I was setting up backup to the backup server). With the root SSD probably all filled up I issued
Code:sudo apt update && sudo apt -y upgradeThen I ran into problems. The Docker package did not update correctly and Docker was down.

I found and removed the old data, however updating & upgrading again did not work. At first it just hang. Later I tried some things and now I get this:
Code:Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2375 (apt)... 5sSearched for a solution online, found it, manually removed the lockfiles but I keep getting this over and over again. I turned to Google again and found this page: https://itsfoss.com/could-not-get-lock-error/

I did the following:
Code:sudo killall apt apt-get
sudo apt update && sudo apt upgradethen I got
Code:Could not get lock /var/lib/dpkg/lock. It is held by process 2671 (dpkg)so I issued
Code:sudo killall apt apt-get dpkg
sudo apt update && sudo apt upgradethen I got

Code:E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.so I did

Code:sudo dpkg --configure -a
Setting up librados2 (15.2.11-0ubuntu0.20.04.2) ...
Setting up gstreamer1.0-x:amd64 (1.16.2-4ubuntu0.1) ...
Setting up software-properties-common (0.98.9.5) ...
Setting up libcephfs2 (15.2.11-0ubuntu0.20.04.2) ...
Setting up docker-ce (5:20.10.1~3-0~ubuntu-bionic) ...

< .. and it hangs .. >.. and I am stuck again. Docker is down and I can't update my system again.

I could of course make a clean install however I would prefer to repair the current installation.

Could anyone please help me? Thanks!!latest?d=yIl2AUoC8zA latest?i=dXHP9E0lMaM:bwCLhz9woGI:F7zBnMy latest?i=dXHP9E0lMaM:bwCLhz9woGI:V_sGLiP latest?d=qj6IDK7rITs latest?i=dXHP9E0lMaM:bwCLhz9woGI:gIN9vFwdXHP9E0lMaM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments