LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-04-2018, 10:36 AM   #1
theanondevil
LQ Newbie
 
Registered: Aug 2018
Posts: 1

Rep: Reputation: Disabled
apt unmet dependencies on debain when upgrading to testing


I recently switched from debian stable to testing (in the apt source)

I executed
Code:
apt update && apt upgrade && apt autoremove
But apt upgrade fails with following message

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dmsetup : Depends: libdevmapper1.02.1 (>= 2:1.02.138) but 2:1.02.137-2 is installed
 mount : Depends: util-linux (>= 2.29.2-3~)
 systemd : Depends: libsystemd0 (= 232-25+deb9u4) but 239-7 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
as I read the error message i realized apt gives me a solution (Try 'apt --fix-broken install')

but when i executed
Code:
apt --fix-broken install
i got following error
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libpython3.6-minimal libtinfo6:i386 python3.6-minimal
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  fdisk libdevmapper1.02.1 libpam-systemd login systemd util-linux
Suggested packages:
  systemd-container util-linux-locales
The following NEW packages will be installed:
  fdisk
The following packages will be upgraded:
  libdevmapper1.02.1 libpam-systemd login systemd util-linux
5 upgraded, 1 newly installed, 0 to remove and 1791 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,326 kB of archives.
After this operation, 3,582 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Reading changelogs... Done
(Reading database ... 310287 files and directories currently installed.)
Preparing to unpack .../util-linux_2.32-0.3_amd64.deb ...
Unpacking util-linux (2.32-0.3) over (2.29.2-1+deb9u1) ...
Replacing files in old package login (1:4.4-4.1) ...
dpkg: error processing archive /var/cache/apt/archives/util-linux_2.32-0.3_amd64.deb (--unpack):
 trying to overwrite '/usr/share/bash-completion/completions/su', which is also in package bash-completion 1:2.1-4.3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: considering deconfiguration of util-linux, which would be broken by installation of fdisk ...
dpkg: no, util-linux is essential, will not deconfigure
 it in order to enable installation of fdisk
dpkg: error processing archive /var/cache/apt/archives/fdisk_2.32-0.3_amd64.deb (--unpack):
 installing fdisk would break existing software
Errors were encountered while processing:
 /var/cache/apt/archives/util-linux_2.32-0.3_amd64.deb
 /var/cache/apt/archives/fdisk_2.32-0.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
so my last attempt before start researching was to just reinstall the conflicting packages
Code:
apt install --reinstall mount systemd dmsetup libdevmapper1.02.1 util-linux fdisk login libpam-systemd
which gave my another error:
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpython3.6-minimal libtinfo6:i386 python3.6-minimal
Use 'apt autoremove' to remove them.
Suggested packages:
  systemd-container util-linux-locales
The following NEW packages will be installed:
  fdisk
The following packages will be upgraded:
  libdevmapper1.02.1 libpam-systemd login systemd util-linux
5 upgraded, 1 newly installed, 2 reinstalled, 0 to remove and 1791 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,326 kB of archives.
After this operation, 3,582 kB of additional disk space will be used.
E: Internal Error, No file name for mount:amd64
I never saw that error before and was confused so I started researching without any usefull results

ADDITIONAL INFORMATION:

dpkg --audit

Code:
dpkg --audit
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 dmsetup              Linux Kernel Device Mapper userspace library
 mount                tools for mounting and manipulating filesystems

The following packages have been triggered, but the trigger processing
has not yet been done.  Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 mime-support         MIME files 'mime.types' & 'mailcap', and support programs
 systemd              system and service manager
I hope I didnt wrote to much, but I tried to make the error as reproducable as possible.
 
Old 08-04-2018, 07:28 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,532

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
Not surprisingly, you are in dependency hell.
You must have a good reason for needing the testing software.

Writing
Code:
apt update && apt upgrade && apt autoremove
was definitely supremely over-confident!

I would have installed Debian Stable in a VM, changed to testing repositories and tried to update/upgrade.
If nothing serious broke, I would be tempted to try it on a real machine.
 
Old 08-04-2018, 07:44 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
For Debian Testing dependencies are not that well fine-tuned as for Stable. That is, unresolvable dependencies can exist.

If you really want to continue, the usual things to try are:
  • If apt is complaining that it cannot continue installation because of a conflicting package, remove the conflicting package first
    before you continue the apt-upgrade
  • If apt cannot find a certain version, try to find the .deb yourself, maybe in Unstable and install it using dpkg
  • Use apt with the force option
  • It can also happen that any (forced) action uninstalls or breaks apt. Then nothing is left but a clean install. You have been warned.
All three actions are not without risk and can break your system even further. It is very hard to oversee all consequences at any moment. You don't know if your action will be successful or catastrophic.

The recommendation by JeremyBoden is very true: if this is important to you, try it in a test environment first.

Usually a clean Testing installation will perform well if that is an option to you.

jlinkels

Last edited by jlinkels; 08-04-2018 at 07:46 PM.
 
Old 08-04-2018, 11:44 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,304
Blog Entries: 9

Rep: Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309Reputation: 3309
did you follow this: https://wiki.debian.org/DebianTesting
before attempting it?
 
Old 08-06-2018, 12:27 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
@ondoho, excellent link, +1.
 
Old 08-06-2018, 01:11 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,704

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
You will also need an ‘apt-get dist-upgrade’ to remove/replace packages with changed dependencies.

As you’ve already been mucking about with it and have some half installed packages ymmv.
 
  


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
apt-get has unmet dependencies, but apt-get -f install doesn't solve problem sophanox Linux - Software 1 02-23-2011 10:07 AM
unmet dependencies on apt-get datchie Linux - Newbie 2 11-18-2009 03:07 AM
apt-get unmet dependencies, etc. knappster Linux - Software 13 12-14-2005 10:06 PM
apt-get unmet dependencies jeffbarish Debian 9 10-27-2005 12:19 AM
apt-get & unmet dependencies! beecee Debian 1 01-09-2004 07:44 AM

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

All times are GMT -5. The time now is 05:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration