0

I just removed gnupg and broke my system. Right now for example apt-get is not working anymore. Any ideas how i can get it working again or i can reinstall pgp without apt-get?

1

1 Answer 1

0

You have to use livecd to chroot to your system and reinstall gnupg from that. There is an article on help.ubuntu.com on how to do that.

Steps taken from that article:

  1. Boot the Ubuntu Live CD.
  2. Press Ctrl-Alt-F1
  3. sudo mount /dev/sda1 /mnt
  4. sudo mount --bind /dev /mnt/dev
  5. sudo mount --bind /proc /mnt/proc
  6. sudo mount --bind /sys /mnt/sys
  7. sudo chroot /mnt
  8. apt-get update
  9. apt-get upgrade

But instead of step 9 above - you will use apt-get install gnupg

1
  • DNS wasn't working so could not make the updates with apt-get update. I had to change the nameserver by deleting the resolv.conf with rm /etc/resolv.conf then creating a new (the currentwas read only) with touch /etc/resolv.conf and opening it with nano /etc/resolv.conf and write the adress of my router "nameserver 192.168.178.1" in it. Afterwards "apt-get update" worked fine and after using "apt-get -f install" and a reboot my system is running again. Thank you very much!
    – Belorenz
    Mar 1, 2016 at 9:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .