Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Raspbian install apt-get


    Hi, I recently uninstalled gnupg2, stupid I know, but now I cant use the command apt-get. I get the error:

    apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory

    How do I fix this, I'm fairly new to linux so would you please guide me through

  2. #2
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    1,909
    Is the deb package still in /var/cache/apt/archives? If it is there just use dpkg to install it. If it is not there ... well, you know what to do. Use wget or any other application to download it from distro repository.

  3. #3
    Linux Newbie
    Join Date
    Apr 2015
    Location
    Yorkshire, England
    Posts
    222
    Search for 'libapt-pkg.so.4.12 download raspbian' yeilds a couple of sites which may help
    https://askubuntu.com/questions/674356

    ubuntu is also a debian derived linux. It's only a vauge outline and some directory names will be different on your raspberry pi.

    Have you tried https://www.raspberrypi.org/forums/v...07765&p=742717

  4. $spacer_open
    $spacer_close
  5. #4
    this has already been solved on another forum, either forums.debian.net or linuxquestions.org
    I am not a "Linux Guru"! Get off me! The Forum software won't let me change it!
    How to ask smart questions | Don't be a Help Vampire | How to Use Code Tags
    You can post a link by removing "http://www." from it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •