Codeblocks is not successfully installed, and cannot be uninstalled. the software cannot be installed or uninstalled. 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. Then run the following command in the terminal:
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