The Package cannot be removed because DebianLinuxdeb installation fails.

Source: Internet
Author: User
DebianLinuxdeb installation failure causes the Package to be unable to remove the solution-Linux Release Technology-Debian information. For more information, see the following. Debian uses dpkg to install the Package. However, this Package has many other dependencies. After the installation is complete, the dependent Package must be supplemented, but the dependent Package cannot be installed, and the Package cannot be removed, this has caused a lot of troubles.

Remove the Package. When apt-get remove/dpkg-r cannot be removed, you have to do it manually.

Manually remove deb Package

Find the Package-related installation files. either of the following methods is used to list the Package file list.

Dpkg-L Package-Name (all are cut off)
Cd/var/cache/apt/archives; dpkg-c Package-Name.deb

Delete the Package message in the index file.

Vim/var/lib/dpkg/status # Find "Package: Package-Name" and delete all packages before the start of "Next Package.
Cd/var/lib/dpkg/info
Rm-fr Package-Name. * # md5/list/shlibs

Re-Indexing
Apt-get update

Most of them only need to perform steps 2 and 3. It doesn't matter if 1 is not cut clean. (Note that some packages may share settings after 1 is cut)

If the Package itself needs to be installed, but it only needs to supplement other dependencies, resulting in problems that cannot be installed, you only need to perform steps 2, 3, and then supplement dependencies, install the file directly (the same file will be replaced, so it will be the same ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.