Ubuntu software package system damaged

Source: Internet
Author: User
Tags unpack

Codeblocks is not successfully installed, and cannot be uninstalled, nor can the software be installed or uninstalled.
Display:
The software package system is damaged.
Check whether the third source is used. Disable them if they are, because they are usually the cause of the problem.
Run the following command in the terminal: apt-get install-f

Details:

1: an error occurs during installation:

$ Sudo apt-get install codeblocks
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
You may need to run "apt-get-f install" to correct the following errors:
The following software packages have dependencies that are not met:
Codeblocks-dev: Dependency: libcodeblocks0 (= 10.05-1) but 10.05-2 is about to be installed
Libwxsmithlib0-dev: Dependency: libwxsmithlib-dev (= 10.05-2) but it will not be installed


2: an error occurs during restoration:

$ Sudo apt-get install-f
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
Correcting dependency... finished
The following additional software packages will be installed:
Codeblocks-dev libwxsmithlib-dev
The following [new] software packages will be installed:
Libwxsmithlib-dev
The following software packages will be upgraded:
Codeblocks-dev
1 Software Package upgraded, 1 new software package installed, 0 software packages to be uninstalled, 0 software packages not upgraded.
Two software packages are not fully installed or uninstalled.
The software package of 0 B/419 kB needs to be downloaded.
After decompression, 2,339 kB of extra space will be consumed.
Do you want to continue? [Y/n] Y
(Reading the database... the system currently has 195158 files and directories installed .)
Preparing to replace codeblocks-dev 10.05-1 (using.../codeblocks-dev_10.05-2_i386.deb )...
Decompressing the codeblocks-dev package file used for replacement...
Dpkg: handle/var/cache/apt/archives/codeblocks-dev_10.05-2_i386.deb (-- unpack) error:
Attempting to overwrite/usr/include/codeblocks/scripting/sqplus/SqPlusConst. h. It is also included in the software package codeblocks-headers 10.05-1
Dpkg-deb: error: subprocess paste was killed by signal (disconnected pipe)
Extracting libwxsmithlib-dev (from.../libwxsmithlib-dev_10.05-2_i386.deb )...
Dpkg: handle/var/cache/apt/archives/libwxsmithlib-dev_10.05-2_i386.deb (-- unpack) error:
Attempting to overwrite/usr/include/wxsmith/contrib/include/wx/propgrid/advprops. h. It is also included in the package wxsmith-headers 10.05-1
Dpkg-deb: error: subprocess paste was killed by signal (disconnected pipe)
An error occurred during processing:
/Var/cache/apt/archives/codeblocks-dev_10.05-2_i386.deb
/Var/cache/apt/archives/libwxsmithlib-dev_10.05-2_i386.deb

E: Sub-process/usr/bin/dpkg returned an error code (1)

 

Www.2cto.com


Solution:

Sudo dpkg-r codeblocks *


Then, the installation is successful.

 


Love254443233 Column

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.