E: Internal Error, No file name for libapt-pkg4.12

When I tried to update an Ubuntu (12.04) machine with the usual apt-get command, this error message came up:

Do you want to continue [Y/n]? Y
E: Internal Error, No file name for libapt-pkg4.12

Reading this post (http://ubuntuforums.org/showthread.php?t=2045321), one way to fix it is to download liapt-pkg4.12 and re-install it:

# apt-get download libapt-pkg4.12/precise-security
# dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10.10_amd64.deb

This seems did the trick.

3 thoughts on “E: Internal Error, No file name for libapt-pkg4.12

  1. Bernard

    Thank you very much, this fixed the issue :

    apt-get download libapt-pkg4.12/precise-security
    sudo dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10.20.1_amd64.deb

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *