LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-17-2018, 11:42 AM   #1
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Rep: Reputation: 47
fixinstall not working


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.
 
Old 02-17-2018, 06:24 PM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
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.
Code:
apt-cache rdepends libglib2.0-cil --installed
apt-cache rdepends libgtk2.0-cil --installed
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.

Last edited by Brains; 02-17-2018 at 06:55 PM.
 
Old 02-17-2018, 07:06 PM   #3
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
My sources.list is as follows:

Code:
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
For reverse depends:
Code:
$ apt-cache rdepends libgtk2.0-cil --installed
libgtk2.0-cil
Reverse Depends:

$ apt-cache rdepends libglib2.0-cil --installed
libglib2.0-cil
Reverse Depends:
  libgtk2.0-cil
(Without --installed, there is a long list- I am checking it now).

Hence, there are no other packages involved. What does this mean?

Last edited by rng; 02-17-2018 at 07:09 PM.
 
Old 02-17-2018, 07:39 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
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.

Code:
sudo dpkg --force-all -P libgtk2.0-cil
 
Old 02-17-2018, 07:41 PM   #5
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
If that don't work, I would try installing something that requires those two, then uninstall.
 
Old 02-17-2018, 11:46 PM   #6
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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)
How can this be corrected?

Last edited by rng; 02-17-2018 at 11:48 PM.
 
Old 02-18-2018, 12:03 AM   #7
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by rng View Post
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
 
Old 02-18-2018, 03:15 AM   #8
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
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?
 
Old 02-19-2018, 07:05 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
this question cannot be answered without thoroughly investigating the situation.
for newbies the advice is usually "it is possible to fix it, but probably you'll save yourself a lot of time & pain if you just reinstall, and be more careful in the future".
please see
http://forums.debian.net/viewtopic.php?f=20&t=114130
and
https://wiki.debian.org/DontBreakDeb..._FrankenDebian
 
Old 02-19-2018, 07:27 AM   #10
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,198

Original Poster
Rep: Reputation: 47
I have reinstalled and the new installation is working well. Thanks everyone for your kind help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Wifi not working in Eee PPC 1000HE (Debian Squeeze), but ethernet is working someshpr Linux - Laptop and Netbook 8 10-10-2011 03:59 PM
media problem with .avi --- audio only in vlc working rest amarock ,etc. not working fedex Linux - Newbie 1 12-22-2007 08:06 AM
SED - minor changes work - Larger doesn't (working and non working code included) Nimoy Programming 17 09-22-2007 04:34 PM
Fortemedia FM801 card not working under FC5 on Intel 845 but working with windows morningkiran Linux - Hardware 0 11-30-2006 07:57 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration