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!
02 Answers
The site is not down; that link is invalid. See the list of supported releases for
For all other use archive
2An 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 dpkgTo 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