Where can I download dpkg .deb?

I had a problem when trying to install/uninstall stuff on Ubuntu 20.04:

dpkg: error: error trying to open /var/lib/dpkg/info/format: Not a directory
E: Sub-process /usr/bin/dpkg returned an error code (2)

I saw this topic:

Lost/Deleted dpkg (package manager for Debian). How do I get it back?

But the website packages.ubuntu.com was down. Please tell me another website to download this dpkg.deb. I am using Ubuntu 20.04. Please tell me how to find the exact version to download. Thanks for all!

download dpkg package

0

2 Answers

The site is not down; that link is invalid. See the list of supported releases for

For all other use archive

2

An alternative way to download the source of a package is to use apt commands.

Just run the following commands to create a working directory and to download the .deb file:

mkdir DPKG
cd DPKG
apt download dpkg

To extract the files, run the following commands:

ar xvf *deb
tar xvf dat*

Now, to copy the files into place:

for i in [esuv]*; do sudo cp -R $i/* /$i/ ; done

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like