8

I've updated my Ubuntu distro, and since then everytime I boot the system I am stuck at the fsck screen

/dev/sda1: clean xxx/xxx files, xxx/xxx blocks

I`ve already trying accessing tty and installing xorg and/or nvidia drivers but keep getting the same error message from sudo apt-get install:

apt-get: relocation error: /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0: symbol....

I had a GPU installed in my system at the time of the distro upgrade, but I've also tried a multitude of "fixes" with the GPU deactivated by the BOOT settings and none seem to work neither.

Can anyone help me with that? Thanks

Edit 1: Following the demand on a comment, I loged into recovery root and:

# sudo blkid 
/dev/sdb: PTUUID="000d2ed6" PTTYPE="dos"
/dev/sata1: UUID="6ad5e12f-8d6f-4659-b5d4-8fe9eb9d11df" TYPE="ext4" PARTUUID="c537cdcf-01"

# cat /etc/fstab/
# /etc/fstab: static file system information
# 
# Use 'blkid' to print the universally unique identifier for a 
# device; this may be used with a UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options>     <dump>   <pass>
# / was on /dev/sda1 during installation
UUID=6ad5e12f-8d6f-4659-b5d4-8fe9eb9d11df /     ext4    errors=remount-ro  0     1

# free -h
           total     used    free    shared    buff/cache    availabe
Mem:        7.7G      37M    7.5G      8.2M          162M        7.4G
Swap:         0B       0B      0B

# swap on
# _ (no output here)
GennSev
  • 191

4 Answers4

2

You'll also run into this exact error if you run out of disk space as well. I was stuck at boot

Ctrl + Alt + F1 or F2 into tty2 login

df -h says /dev/sda1 is 100% used

I find the stuff I need to delete with this command

du -d1 -h /home/username | sort -h

For example, I deleted some folders like so

sudo rm -rf /home/username/Desktop/folder/*
sudo rm -rf /home/username/.cache/*
sudo rm -rf /home/username/.mozilla/*

reboot and now it boots up no problem now

joke4me
  • 121
1

If you recently installed nvidia drivers, you might have disabled nouveau drivers. In my case I managed to fix this by removing every occurrence of nomodeset from /etc/default/grub file and then by executing sudo update-grub.

This was because nomodeset disables the use of any graphic driver. I disabled my nouveau drivers before installing nvidia ones.

Though this might not be the case with everyone.

markroxor
  • 132
1

You need to run the following commands to install Intel graphics card drivers:

add-apt-repository -y ppa:oibaf/graphics-drivers
apt update
apt install xserver-xorg-video-intel

After that, run the below command:

sudo apt-get install ubuntu-desktop

Then: reboot

From: How to install the newest xserver-xorg-video-intel on 18.04 Bionic?

Pizza
  • 1,512
1

I finally managed to fix my problem. It looks like it was caused by issues from PPA for Ubuntu toolchain. I downloaded (from tty terminal) the debian of package libstdc++6 for Xenial at http://packages.ubuntu.com/xenial/libstdc++6

In my case (amd64) I did the following (on tty, Cntrl + Alt + F1 on the "error" screen):

# wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb
# dpkg -i libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb
# reboot

And voilĂ , that solved the problem :)

GennSev
  • 191