Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Debian Stable 64bit Linux which is otherwise working very well. However, I am getting dpkg errors whenever I install or remove a program. To correct it, I ran following command but got error as shown below:
Code:
$ sudo wajig fixinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libglib2.0-cil libgtk2.0-cil
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
9 not fully installed or removed.
After this operation, 2,721 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 158096 files and directories currently installed.)
Removing libgtk2.0-cil (2.12.40-2) ...
E: File does not exist: /usr/share/cli-common/packages.d/policy.2.4.pango-sharp.installcligac
dpkg: error processing package libgtk2.0-cil (--remove):
subprocess installed post-removal script returned error exit status 1
Removing libglib2.0-cil (2.12.40-2) ...
E: File does not exist: /usr/share/cli-common/packages.d/policy.2.6.glib-sharp.installcligac
dpkg: error processing package libglib2.0-cil (--remove):
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
libgtk2.0-cil
libglib2.0-cil
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to purge libgtk2.0-cil and libglib2.0-cil but it does not help. I also tried reinstalling and purging these packages but of no avail.
Where is the problem and how can it be solved? Thanks for your help.
Hopefully your sources.list only has Debian Stable repositories, if not, this could be what caused the automatic removal of the two packages due to version conflicts. If you have packages from Sid or Unstable, this could have brought on the conflicts.
But those libraries are needed by so many other packages, if you run the commands below you will see what all packages depend on these, and perhaps something in the list you've installed recently will catch your eye to which you may want to try reinstalling, possibly with only Stable repositories in /etc/sources.list. Because the errors suggests these libraries are already uninstalled. They appear to go together and likely will produce the same list. rdepends is reverse dependency to find which packages depend on the package being queried.
EDIT: I added the "--installed" to narrow down the list, if nothing shows up with the --installed flag, try without it to see if there is something in the list you once had installed.
deb http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
According to those outputs, libgtk2.0-cil is installed, and libglib2.0-cil is not, they depend on each other and this is the cause of the errors. Since no other installed packages require them, it only seems logical you need to force uninstalling libgtk2.0-cil.
If "apt-get purge libgtk2.0-cil" don't do anything, look at dpkg --force options in dpkg man page, the example below I found in a Ubuntu site, not sure if it's correct but have a look here first and decide.
I had tried to install `pinta` package. It is also there in rdepends list. I saw it is not installed and tried to install it, but got following errors:
Code:
$ sudo apt-get install pinta
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
pinta : Depends: libgtk2.0-cil (>= 2.12.10-1ubuntu1) but it is not going to be installed
Depends: libmono-addins-gui0.2-cil (>= 1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried to install libgtk and got this:
Code:
$ sudo apt-get install libgtk2.0-cil
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgtk2.0-cil is already the newest version (2.12.40-2).
The following additional packages will be installed:
libgdiplus libmono-cairo4.0-cil libmono-system-drawing4.0-cil
The following NEW packages will be installed:
libgdiplus libmono-cairo4.0-cil libmono-system-drawing4.0-cil
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
9 not fully installed or removed.
Need to get 0 B/1,108 kB of archives.
After this operation, 1,097 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libmono-cairo4.0-cil.
(Reading database ... 158076 files and directories currently installed.)
Preparing to unpack .../libmono-cairo4.0-cil_4.6.2.7+dfsg-1_all.deb ...
Unpacking libmono-cairo4.0-cil (4.6.2.7+dfsg-1) ...
Selecting previously unselected package libgdiplus.
Preparing to unpack .../libgdiplus_4.2-1+b1_amd64.deb ...
Unpacking libgdiplus (4.2-1+b1) ...
Selecting previously unselected package libmono-system-drawing4.0-cil.
Preparing to unpack .../libmono-system-drawing4.0-cil_4.6.2.7+dfsg-1_all.deb ...
Unpacking libmono-system-drawing4.0-cil (4.6.2.7+dfsg-1) ...
Setting up binfmt-support (2.1.6-2) ...
/var/lib/dpkg/info/binfmt-support.postinst: 6: /var/lib/dpkg/info/binfmt-support.postinst: update-binfmts: not found
/var/lib/dpkg/info/binfmt-support.postinst: 31: /var/lib/dpkg/info/binfmt-support.postinst: update-rc.d: not found
dpkg: error processing package binfmt-support (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up exim4-config (4.89-2+deb9u3) ...
/var/lib/dpkg/info/exim4-config.postinst: 254: /var/lib/dpkg/info/exim4-config.postinst: update-exim4defaults: not found
dpkg: error processing package exim4-config (--configure):
subprocess installed post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of exim4-base:
exim4-base depends on exim4-config (>= 4.82) | exim4-config-2; however:
Package exim4-config is not configured yet.
Package exim4-config-2 is not installed.
Package exim4-config which provides exim4-config-2 is not configured yet.
dpkg: error processing package exim4-base (--configure):
dependency problems - leaving unconfigured
Setting up mono-runtime-common (4.6.2.7+dfsg-1) ...
/var/lib/dpkg/info/mono-runtime-common.postinst: 4: /var/lib/dpkg/info/mono-runtime-common.postinst: update-binfmts: not found
dpkg: error processing package mono-runtime-common (--configure):
subprocess installed post-installation script returned error exit status 127
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libmono-cairo4.0-cil (4.6.2.7+dfsg-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
dpkg: dependency problems prevent configuration of exim4-daemon-light:
exim4-daemon-light depends on exim4-base (>= 4.89); however:
Package exim4-base is not configured yet.
dpkg: error processing package exim4-daemon-light (--configure):
dependency problems - leaving unconfigured
Setting up libgdiplus (4.2-1+b1) ...
Setting up ca-certificates (20161130+nmu1) ...
/var/lib/dpkg/info/ca-certificates.postinst: 147: /var/lib/dpkg/info/ca-certificates.postinst: update-ca-certificates: not found
dpkg: error processing package ca-certificates (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up libmono-system-drawing4.0-cil (4.6.2.7+dfsg-1) ...
dpkg: dependency problems prevent configuration of ca-certificates-mono:
ca-certificates-mono depends on ca-certificates (>= 20121114); however:
Package ca-certificates is not configured yet.
dpkg: error processing package ca-certificates-mono (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
binfmt-support
exim4-config
exim4-base
mono-runtime-common
exim4-daemon-light
ca-certificates
ca-certificates-mono
E: Sub-process /usr/bin/dpkg returned an error code (1)
I had tried to install `pinta` package. It is also there in rdepends list. I saw it is not installed and tried to install it, but got following errors:
The following packages have unmet dependencies:
pinta : Depends: libgtk2.0-cil (>= 2.12.10-1ubuntu1) but it is not going to be installed
Sorry, can't help you anymore. You lied about your sources.list and broke your Debian. Reinstall
My sources.list is as posted above. I remember now that some time back I had changed the mirror from some other to http://deb.debian.org. That must have caused the problem. Will it help if I go back to same mirror as before?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.