After updating the graphics driver, I could not get into graphical mode. So I removed the nvidia and xserver packages, and now, when I run apt-get -f install, I get these error messages:

Photograph of a screen, showing a text-only console, with kernel messages and APT error messages.

It is the Elementary OS Freya 0.4 x86_64. It all started when I wanted to install Unity 8, and later I "installed" package nvidia-304, although I had installed nvidia-340.

I think it does not matter now, because I do not have any of these packages.

I managed to remove the nvidia-prime package using these commands:

sudo mv /var/lib/dpkg/info/<packagename>.* /tmp/
sudo dpkg --removed --force-remove-reinstreq <packagename>
sudo apt-get remove <packagename>
sudo apt-get autoremove && sudo apt-get autoclean

But now I have a similar problem with a package libc-bin, when I want to install anything, which no longer I can not remove:

Photograph of a screen, showing a text-only console, indicating several xorg-related packages not yet being configured, saying "Processing triggers for libc-bin" and concluding "/usr/bin/dpkg returned an error code (1)."

This seems to me like a grave error of dpkg. I do not know whether it would be best to re-install and configure the package manager. What do you think?

closed as off-topic by Hasan Oct 22 at 3:26

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "The Question is about a release or feature that has been significantly updated, to the point at which upgrading fixes the issue or answers the question." – Hasan
If this question can be reworded to fit the rules in the help center, please edit the question.

migrated from askubuntu.com Jan 16 '17 at 14:50

This question came from our site for Ubuntu users and developers.

  • How did you update the graphics driver? If you're downloading from Nvidia's website, you're doing it wrong. I recommend performing a clean installation of Ubuntu and then running the command sudo apt install nvidia-current to install your graphics drivers. – Aaron Franke Jan 14 '17 at 3:08
  • 1
    Of course, it is the Elementary OS. I updated my question about these and other informations. – arielum Jan 14 '17 at 16:04
  • I installed it through APT, like everything. I could re-install the system, but my cd-rom is dead, and my motherboard does not support USB boot. – arielum Jan 14 '17 at 16:11
  • So it is "of course" not Ubuntu. So it is off-topic. – Pilot6 Jan 14 '17 at 20:28
  • Try sudo apt install --reinstall libc-bin – Aaron Franke Jan 14 '17 at 23:50