LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2017, 12:49 PM   #1
ayatana
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware
Posts: 5

Rep: Reputation: Disabled
How to solve this seemingly impossible dependency problem?


I cannot install any new packages using apt. When I try to install anything I get error like this,

Code:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but it is not installable
              Breaks: fceux (<= 2.2.2+dfsg0-1) but 2.2.1+dfsg0-2 is to be installed
              Breaks: libstdc++6:i386 (!= 5.4.0-6ubuntu1~16.04.4) but 6.2.0-3ubuntu11~14.04 is to be installed
 libstdc++6:i386 : Breaks: libstdc++6 (!= 6.2.0-3ubuntu11~14.04) but 5.4.0-6ubuntu1~16.04.4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Now when I run
Code:
sudo apt-get install -f
I get this error,
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but it is not installable
              Breaks: fceux (<= 2.2.2+dfsg0-1) but 2.2.1+dfsg0-2 is installed
              Breaks: libstdc++6:i386 (!= 5.4.0-6ubuntu1~16.04.4) but 6.2.0-3ubuntu11~14.04 is installed
 libstdc++6:i386 : Breaks: libstdc++6 (!= 6.2.0-3ubuntu11~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
When I try to see any held packages with
Code:
sudo apt-mark showhold
The terminal spits out nothing. I thought that probably libstdc++6 is being held, so tried to unhold it using
Code:
sudo apt-mark unhold libstdc++6
It seems like it wasn't held. The output was,
Code:
libstdc++6 was already not hold.
When I try to sudo apt-get autoremove, I get this extra error along with the ones above,
Code:
W: Ignoring Provides line with DepCompareOp for package libreoffice-l10n
And I have tried the following commands with no result at all,
Code:
sudo apt-get clean
sudo apt-get autoclean
sudo dpkg --configure -a
This whole thing started when I tried to install libstdc++6 from Ubuntu's higher (than the version that I am running) version repository. I have forced to dpkg to to remove it and probably that put me deeper in the quicksand. Now, I have run out of my bag of tricks here. Please help.
 
Old 02-13-2017, 01:02 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Do you have a recent backed up/imaged copy of your system that you can revert to? That would be my first choice if faced with this scenario.

In general, so much of the system is dependent on the correct versions of packages like libstdc++ that it's best to leave these well alone. If not, you should definitely back up your system before playing about with them.

If you don't have a system backup to which you can revert, the first thing I would suggest is that you look closely at /var/log/apt/history.log and term.log to see exactly which commands you have issued and which packages have been added/removed since you tried installing libstdc++6 from the "higher version" repository.

You will need to tell us about this "higher version" repository. Generally, you should not install packages from any repository that represents a different system version to the one you're using - it often leads to trouble, particularly if you're talking about system libraries.
 
Old 02-13-2017, 01:10 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Have you tried
Code:
dpkg-reconfigure -a
? Note that this is different than
Code:
dpkg --configure -a
From man dpkg

Code:
   --configure package...|-a|--pending
          Configure a package which has been unpacked but not yet  config‐
          ured.   If  -a  or  --pending  is  given instead of package, all
          unpacked but unconfigured packages are configured.

          Configuring consists of the following steps:

          1.  Unpack  the  conffiles, and at the same time back up the old
          conffiles, so that they can be restored if something goes wrong.

          2. Run postinst script, if provided by the package.
From man dpkg-reconfigure

Code:
dpkg-reconfigure - reconfigure an already installed package

   -pvalue, --priority=value
       Specify the minimum priority of question that will be displayed.
       dpkg-reconfigure normally shows low priority questions no matter
       what your default priority is. See debconf(7) for a list.

   -a, --all
       Reconfigure all installed packages that use debconf. Warning: this
       may take a long time.
 
Old 02-13-2017, 01:15 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 3,942
Blog Entries: 20

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
What's your sources.list & sources.list.d look like? One thing I have recently done when I upgraded some packages to experimental is create a /etc/apt/preferences.d/<whatever> file and set the system priority to 1100 for the regular package. This high a priority will actually allow apt to DOWNGRADE packages if it's required in order to install the target software.
 
Old 02-13-2017, 01:16 PM   #5
ayatana
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Do you have a recent backed up/imaged copy of your system that you can revert to?
Unfortunately, I don't have a backup.

Quote:
You will need to tell us about this "higher version" repository.
I am on Ubuntu 14.04 LTS with support till 2019. But I downloaded the package from Ubuntu 16.04 LTS repository.

Quote:
If you don't have a system backup to which you can revert, the first thing I would suggest is that you look closely at /var/log/apt/history.log and term.log to see exactly which commands you have issued and which packages have been added/removed since you tried installing libstdc++6 from the "higher version" repository.
I will look at the log history but as apt and dpkg complain, the problem is with libstdc++6 package and there is nothing I can do about it. I cannot install, remove or reinstall any packages due to dependency problem in the way. I think I have completely broken my packages system.
 
Old 02-13-2017, 01:25 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by ayatana View Post
Unfortunately, I don't have a backup.

I am on Ubuntu 14.04 LTS with support till 2019. But I downloaded the package from Ubuntu 16.04 LTS repository.

I will look at the log history but as apt and dpkg complain, the problem is with libstdc++6 package and there is nothing I can do about it. I cannot install, remove or reinstall any packages due to dependency problem in the way. I think I have completely broken my packages system.
Not necessarily. You can place packages which may cause dependency problems on hold and concentrate on addressing individual packages one at a time. First, though, you should paste the relevant tail of history.log here so that we can what you've done since (and including) you updated libstdc++6.

Also, as noted by another poster, list your current repos here (if you have inxi installed, inxi -r provides a handy of listing of these).
 
Old 02-13-2017, 01:36 PM   #7
ayatana
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Timothy Miller View Post
What's your sources.list & sources.list.d look like? One thing I have recently done when I upgraded some packages to experimental is create a /etc/apt/preferences.d/<whatever> file and set the system priority to 1100 for the regular package. This high a priority will actually allow apt to DOWNGRADE packages if it's required in order to install the target software.
Code:
deb http://in.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt trusty main
Here is my /etc/apt/sources.list without the comments.

Quote:
Originally Posted by TheEzekielProject View Post
Have you tried
Code:
dpkg-reconfigure -a
? Note that this is different than
Code:
dpkg --configure -a
This code throws an error that looks like this,
Code:
/usr/sbin/dpkg-reconfigure: ca-certificates is broken or not fully installed
Quote:
Originally Posted by hydrurga View Post
Not necessarily. You can place packages which may cause dependency problems on hold and concentrate on addressing individual packages one at a time. First, though, you should paste the relevant tail of history.log here so that we can what you've done since (and including) you updated libstdc++6.

Also, as noted by another poster, list your current repos here (if you have inxi installed, inxi -r provides a handy of listing of these).
Here is the relevant (I think) /var/log/apt/history.log

Code:
Start-Date: 2017-02-01  13:35:38
Commandline: apt upgrade -y
Install: libisl15:amd64 (0.15-3~14.04, automatic), gcc-6-base:amd64 (6.2.0-3ubuntu11~14.04, automatic), gcc-6-base:i386 (6.2.0-3ubuntu11~14.04, automatic)
Upgrade: libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libasan0:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libsystemd-login0:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), systemd-services:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), lib32gcc1:amd64 (4.9.3-0ubuntu4, 6.2.0-3ubuntu11~14.04), lib32stdc++6:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), cpp-4.8:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), libsystemd-daemon0:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libgcc1:amd64 (4.9.3-0ubuntu4, 6.2.0-3ubuntu11~14.04), libgcc1:i386 (4.9.3-0ubuntu4, 6.2.0-3ubuntu11~14.04), libpam-systemd:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libobjc4:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), udev:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), gfortran-4.8:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libmpfr4:amd64 (3.1.2-1, 3.1.3-1~14.04), g++-4.8:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libudev1:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libudev1:i386 (204-5ubuntu20.21, 204-5ubuntu20.22), libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), gcc-4.8:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libsystemd-journal0:amd64 (204-5ubuntu20.21, 204-5ubuntu20.22), libcloog-isl4:amd64 (0.18.2-1, 0.18.4-1~14.04), libgfortran3:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), gcj-4.8-jre-lib:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libgfortran-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1), libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), libitm1:amd64 (4.8.4-2ubuntu1~14.04.3, 6.2.0-3ubuntu11~14.04), gcc-4.9-base:amd64 (4.9.3-0ubuntu4, 4.9.4-2ubuntu1~14.04.1), gcc-4.9-base:i386 (4.9.3-0ubuntu4, 4.9.4-2ubuntu1~14.04.1), libgcj14:amd64 (4.8.4-2ubuntu1~14.04.3, 4.8.5-2ubuntu1~14.04.1)
End-Date: 2017-02-01  13:37:36
And the /var/log/apt/term.log

Code:
Log started: 2017-02-01  13:35:38
Selecting previously unselected package gcc-6-base:amd64.
(Reading database ... 894446 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking gcc-6-base:amd64 (6.2.0-3ubuntu11~14.04) ...
Selecting previously unselected package gcc-6-base:i386.
Preparing to unpack .../gcc-6-base_6.2.0-3ubuntu11~14.04_i386.deb ...
Unpacking gcc-6-base:i386 (6.2.0-3ubuntu11~14.04) ...
Setting up gcc-6-base:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up gcc-6-base:i386 (6.2.0-3ubuntu11~14.04) ...
(Reading database ... 894456 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a6.2.0-3ubuntu11~14.04_i386.deb ...
De-configuring libgcc1:amd64 (1:4.9.3-0ubuntu4) ...
Unpacking libgcc1:i386 (1:6.2.0-3ubuntu11~14.04) over (1:4.9.3-0ubuntu4) ...
Preparing to unpack .../libgcc1_1%3a6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libgcc1:amd64 (1:6.2.0-3ubuntu11~14.04) over (1:4.9.3-0ubuntu4) ...
Setting up libgcc1:amd64 (1:6.2.0-3ubuntu11~14.04) ...
Setting up libgcc1:i386 (1:6.2.0-3ubuntu11~14.04) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
(Reading database ... 894456 files and directories currently installed.)
Preparing to unpack .../libstdc++6_6.2.0-3ubuntu11~14.04_amd64.deb ...
De-configuring libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3) ...
Unpacking libstdc++6:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libstdc++6_6.2.0-3ubuntu11~14.04_i386.deb ...
Unpacking libstdc++6:i386 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
dpkg: warning: unable to delete old directory '/usr/share/gcc-4.8/python/libstdcxx/v6': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/gcc-4.8/python/libstdcxx': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/gcc-4.8/python': Directory not empty
dpkg: warning: unable to delete old directory '/usr/share/gcc-4.8': Directory not empty
Preparing to unpack .../udev_204-5ubuntu20.22_amd64.deb ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
Unpacking udev (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libudev1_204-5ubuntu20.22_i386.deb ...
De-configuring libudev1:amd64 (204-5ubuntu20.21) ...
Unpacking libudev1:i386 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libudev1_204-5ubuntu20.22_amd64.deb ...
Unpacking libudev1:amd64 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libpam-systemd_204-5ubuntu20.22_amd64.deb ...
Unpacking libpam-systemd:amd64 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../systemd-services_204-5ubuntu20.22_amd64.deb ...
Unpacking systemd-services (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libsystemd-daemon0_204-5ubuntu20.22_amd64.deb ...
Unpacking libsystemd-daemon0:amd64 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libsystemd-login0_204-5ubuntu20.22_amd64.deb ...
Unpacking libsystemd-login0:amd64 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../libtsan0_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libtsan0:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../g++-4.8_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking g++-4.8 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libstdc++-4.8-dev_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking libstdc++-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libquadmath0_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libquadmath0:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libobjc4_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libobjc4:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libitm1_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libitm1:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libgomp1_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libgomp1:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libgfortran3_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libgfortran3:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../gfortran-4.8_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking gfortran-4.8 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libgfortran-4.8-dev_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking libgfortran-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libgcc-4.8-dev_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking libgcc-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libatomic1_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking libatomic1:amd64 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libasan0_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking libasan0:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../lib32stdc++6_6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking lib32stdc++6 (6.2.0-3ubuntu11~14.04) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../gcc-4.8_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking gcc-4.8 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../cpp-4.8_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking cpp-4.8 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../gcc-4.8-base_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
De-configuring gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3) ...
Unpacking gcc-4.8-base:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../gcc-4.8-base_4.8.5-2ubuntu1~14.04.1_i386.deb ...
Unpacking gcc-4.8-base:i386 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../libisl15_0.15-3~14.04_amd64.deb ...
Unpacking libisl15:amd64 (0.15-3~14.04) ...
Preparing to unpack .../libcloog-isl4_0.18.4-1~14.04_amd64.deb ...
Unpacking libcloog-isl4:amd64 (0.18.4-1~14.04) over (0.18.2-1) ...
Preparing to unpack .../libmpfr4_3.1.3-1~14.04_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.3-1~14.04) over (3.1.2-1) ...
Preparing to unpack .../lib32gcc1_1%3a6.2.0-3ubuntu11~14.04_amd64.deb ...
Unpacking lib32gcc1 (1:6.2.0-3ubuntu11~14.04) over (1:4.9.3-0ubuntu4) ...
Preparing to unpack .../libgcj14_4.8.5-2ubuntu1~14.04.1_amd64.deb ...
Unpacking libgcj14:amd64 (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Preparing to unpack .../libsystemd-journal0_204-5ubuntu20.22_amd64.deb ...
Unpacking libsystemd-journal0:amd64 (204-5ubuntu20.22) over (204-5ubuntu20.21) ...
Preparing to unpack .../gcc-4.9-base_4.9.4-2ubuntu1~14.04.1_i386.deb ...
De-configuring gcc-4.9-base:amd64 (4.9.3-0ubuntu4) ...
Unpacking gcc-4.9-base:i386 (4.9.4-2ubuntu1~14.04.1) over (4.9.3-0ubuntu4) ...
Preparing to unpack .../gcc-4.9-base_4.9.4-2ubuntu1~14.04.1_amd64.deb ...
Unpacking gcc-4.9-base:amd64 (4.9.4-2ubuntu1~14.04.1) over (4.9.3-0ubuntu4) ...
Preparing to unpack .../gcj-4.8-jre-lib_4.8.5-2ubuntu1~14.04.1_all.deb ...
Unpacking gcj-4.8-jre-lib (4.8.5-2ubuntu1~14.04.1) over (4.8.4-2ubuntu1~14.04.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libstdc++6:i386 (6.2.0-3ubuntu11~14.04) ...
Setting up libstdc++6:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libudev1:amd64 (204-5ubuntu20.22) ...
Setting up libudev1:i386 (204-5ubuntu20.22) ...
Setting up udev (204-5ubuntu20.22) ...
udev stop/waiting
udev start/running, process 14192
Removing 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up libsystemd-daemon0:amd64 (204-5ubuntu20.22) ...
Setting up systemd-services (204-5ubuntu20.22) ...
Setting up libpam-systemd:amd64 (204-5ubuntu20.22) ...
Setting up libsystemd-login0:amd64 (204-5ubuntu20.22) ...
Setting up libtsan0:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up gcc-4.8-base:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up gcc-4.8-base:i386 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libisl15:amd64 (0.15-3~14.04) ...
Setting up libcloog-isl4:amd64 (0.18.4-1~14.04) ...
Setting up libmpfr4:amd64 (3.1.3-1~14.04) ...
Setting up cpp-4.8 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libgomp1:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libitm1:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libatomic1:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libasan0:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libquadmath0:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libgcc-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up gcc-4.8 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libstdc++-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up g++-4.8 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libobjc4:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libgfortran3:amd64 (6.2.0-3ubuntu11~14.04) ...
Setting up libgfortran-4.8-dev:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up gfortran-4.8 (4.8.5-2ubuntu1~14.04.1) ...
Setting up lib32gcc1 (1:6.2.0-3ubuntu11~14.04) ...
Setting up lib32stdc++6 (6.2.0-3ubuntu11~14.04) ...
Setting up libgcj14:amd64 (4.8.5-2ubuntu1~14.04.1) ...
Setting up libsystemd-journal0:amd64 (204-5ubuntu20.22) ...
Setting up gcc-4.9-base:amd64 (4.9.4-2ubuntu1~14.04.1) ...
Setting up gcc-4.9-base:i386 (4.9.4-2ubuntu1~14.04.1) ...
Setting up gcj-4.8-jre-lib (4.8.5-2ubuntu1~14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
Processing triggers for initramfs-tools (0.103ubuntu4.6) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
Log ended: 2017-02-01  13:37:36
I don't have inxi installed and I obviously cannot install it. But I have cat'd my /etc/apt/sources.list.
 
Old 02-13-2017, 01:39 PM   #8
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Try
Code:
dpkg --purge ca-certificates
Then try
Code:
dpkg-reconfigure -a
again
 
Old 02-13-2017, 01:49 PM   #9
ayatana
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TheEzekielProject View Post
Try
Code:
dpkg --purge ca-certificates
Then try
Code:
dpkg-reconfigure -a
again
God. I am in a heap of trouble now. I force purged the certificates, reconfigured dpkg and now when I run apt-get install -f, I get more dependency problem than I began with,
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 ca-certificates-java : Depends: ca-certificates (>= 20121114) but it is not installed
 liblwp-protocol-https-perl : Depends: ca-certificates but it is not installed
 libruby1.9.1 : Depends: ca-certificates but it is not installed
 libstdc++6 : Depends: gcc-5-base (= 5.4.0-6ubuntu1~16.04.4) but it is not installable
              Breaks: fceux (<= 2.2.2+dfsg0-1) but 2.2.1+dfsg0-2 is installed
              Breaks: libstdc++6:i386 (!= 5.4.0-6ubuntu1~16.04.4) but 6.2.0-3ubuntu11~14.04 is installed
 libstdc++6:i386 : Breaks: libstdc++6 (!= 6.2.0-3ubuntu11~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 libwww-perl : Depends: ca-certificates but it is not installed
 python-httplib2 : Depends: ca-certificates but it is not installed
 python-pip : Depends: ca-certificates but it is not installed
              Recommends: python-dev-all (>= 2.6) but it is not installable
 python-requests : Depends: ca-certificates but it is not installed
 python-requests-whl : Depends: ca-certificates but it is not installed
 python3-httplib2 : Depends: ca-certificates but it is not installed
 python3-pip : Depends: ca-certificates but it is not installed
 python3-requests : Depends: ca-certificates but it is not installed
 software-properties-common : Depends: ca-certificates but it is not installed
 ubuntu-desktop : Depends: ca-certificates but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
 
Old 02-13-2017, 02:07 PM   #10
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Try to apt install ca-certificates without any other packages. And I would temporarily edit your apt.sources to only include Ubuntu official repositories for the moment
 
1 members found this post helpful.
Old 02-13-2017, 03:25 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by ayatana View Post
God. I am in a heap of trouble now. I force purged the certificates, reconfigured dpkg and now when I run apt-get install -f, I get more dependency problem than I began with,
That's because dpkg --purge removed both the ca-certificates package and its config files, not just the latter.

apt-get download ca-certificates will download the deb to the folder where you run the command, and then you can try installing the deb by dpkg -i or double-clicking on it. That's assuming that its dependencies are met - if not, you will have to download those as well.
 
Old 02-14-2017, 11:23 AM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by ayatana View Post
I am on Ubuntu 14.04 LTS with support till 2019. But I downloaded the package from Ubuntu 16.04 LTS repository.
Well, you never want to do that.

Re-install, is the most direct route.
 
Old 02-14-2017, 12:03 PM   #13
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 3,942
Blog Entries: 20

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
I would try setting up pinning with priority >1000 like I had suggested and install with a target (-t repo). This allows apt to downgrade packages installed from newer repos to the version in the target. I have used it successfully several times to fix exactly this. It's not 100% successful, but it's very good.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to solve package dependency problem when install Octave ? CassieLinux Linux - Newbie 2 03-08-2012 03:55 PM
How to solve dependency errors SuperDude123 Linux - Newbie 3 02-13-2009 08:43 PM
howto solve this dependency? minike Slackware 6 02-13-2007 10:25 AM
How to solve dependency problem? (sarge vs backport) kaz2100 Debian 2 05-31-2006 03:42 PM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 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