libdrm2 broken dependencies; have followed troubleshooting but not fixed

Asked by Ted Bardusch

Problem: get this
> sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
>

To fix, tried doing as https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure asked, sending here the terminal output:

> ubuntu-support-status
Support status summary of 'mainsrv':

You have 16 packages (0.9%) supported until August 2022 (5y)
You have 1752 packages (94.0%) supported until April 2021 (5y)
You have 37 packages (2.0%) supported until April 2019 (3y)

You have 17 packages (0.9%) that can not/no-longer be downloaded
You have 41 packages (2.2%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
>
> cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
>
> dpkg --print-foreign-architectures
i386
>
> sudo grep -R roxy /etc/apt/*
>
> grep roxy /etc/environment
>
> echo $http_proxy

>
> echo $ftp_proxy

>
> grep roxy /etc/bash.bashrc
>
> grep roxy ~/.bashrc
>
> cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
>
> sudo fuser -vvv /var/lib/dpkg/lock
>
> sudo fuser -vvv /var/cache/apt/archives/lock
>
> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
>
> uname -a
Linux mainsrv 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
> sudo rm /var/lib/apt/lists/lock
>
> sudo rm /var/cache/apt/archives/lock
>
> sudo rm /var/lib/dpkg/lock
>
> sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
>
> sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
>
> sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
>
> sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
>
> sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
>
> sudo rm -rf /var/lib/dpkg/updates/*
>
> sudo rm -rf /var/lib/apt/lists
>
> sudo rm /var/cache/apt/*.bin
>
> sudo mkdir /var/lib/apt/lists
>
> sudo mkdir /var/lib/apt/lists/partial
>
> LANG=C;sudo apt-get clean
>
> LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
>
> sudo dpkg --configure -a
>
> sudo dpkg --clear-avail
>
> LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
>
> LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Unmet dependencies. Try using -f.
>
> LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Unmet dependencies. Try using -f.
>
> LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1201 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1196 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main Translation-en [568 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [8344 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8684 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-en [2908 B]
Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7512 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3410 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7448 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [593 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [573 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [240 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [304 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [211 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7804 B]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [7804 B]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2548 B]
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Get:33 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [510 kB]
Get:34 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:35 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [198 kB]
Get:36 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [163 kB]
Get:37 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [212 kB]
Get:38 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [15.5 kB]
Get:39 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [14.6 kB]
Get:40 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [7540 B]
Get:41 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5888 B]
Get:42 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:43 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4680 B]
Get:44 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4688 B]
Get:45 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3216 B]
Get:46 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3324 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
Get:48 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
Get:49 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [5808 B]
Get:50 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [5816 B]
Get:51 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3004 B]
Get:52 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4684 B]
Get:53 http://archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [2715 B]
Get:54 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [216 B]
Get:55 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Get:56 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [316 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [298 kB]
Get:58 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [133 kB]
Get:59 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [59.1 kB]
Get:60 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [54.7 kB]
Get:61 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7420 B]
Get:62 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7420 B]
Get:63 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2428 B]
Get:64 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:65 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [149 kB]
Get:66 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [133 kB]
Get:67 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [77.0 kB]
Get:68 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [40.5 kB]
Get:69 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [56.2 kB]
Get:70 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2748 B]
Get:71 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [2908 B]
Get:72 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1232 B]
Get:73 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:74 http://archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Fetched 40.6 MB in 1min 1s (660 kB/s)
Reading package lists... Done
>
> LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 306 kB in 1s (215 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Unmet dependencies. Try using -f.
>
> find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/xorg-edgers-ubuntu-ppa-xenial.list

     1 # deb http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main
     2 # deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main
     3 # deb-src http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu xenial main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu xenial main restricted
     6 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted
    11 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://archive.ubuntu.com/ubuntu xenial universe
    19 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
    20 deb http://archive.ubuntu.com/ubuntu xenial-updates universe
    21 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://archive.ubuntu.com/ubuntu xenial multiverse
    29 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
    30 deb http://archive.ubuntu.com/ubuntu xenial-updates multiverse
    31 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    39 # deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu xenial partner
    46 # deb-src http://archive.canonical.com/ubuntu xenial partner
    47
    48 deb http://archive.ubuntu.com/ubuntu xenial-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    50 deb http://archive.ubuntu.com/ubuntu xenial-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    52 deb http://archive.ubuntu.com/ubuntu xenial-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
>
> sudo 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:
 libdrm2:amd64 Userspace interface to kernel DRM services -- runtime

>

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Ted Bardusch
Solved:
Last query:
Last reply:
Revision history for this message
Bashing-om (bashing-om) said :
#1

Ted Bardusch ; Hello;

I show:
""
sysop@x1604:~$ apt depends libdrm2
libdrm2
  Depends: libc6 (>= 2.17)
sysop@x1604:~$ apt depends libdrm-common
E: No packages found
sysop@x1604:~$
""
Makes me consider this is not ubuntu proper packaging .
What are the origins ?
show us:
apt policy libdrm2 libdrm-common

-maybe just not so Yes-

Revision history for this message
Ted Bardusch (geekzero) said :
#2

Here's the output:
> apt depends libdrm2
libdrm2
  Depends: <libdrm-common> (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1)
  Depends: libc6 (>= 2.17)
>

> apt depends libdrm-common
<libdrm-common>
>

> apt policy libdrm2 libdrm-common
libdrm2:
  Installed: 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1
  Candidate: 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1
  Version table:
 *** 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1 100
        100 /var/lib/dpkg/status
     2.4.76-1~ubuntu16.04.1 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.4.67-1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libdrm-common:
  Installed: (none)
  Candidate: (none)
  Version table:
>

Revision history for this message
Bashing-om (bashing-om) said :
#3

Ted Bardusch ;' No.

What is of interest here is why you show a dependency for " <libdrm-common> (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1)" whereas a default install ( mine) does not have this issue.

So we want to know what causes this dependency of yours. Where do the packages come from ?
So, post back the results of terminal command:
apt policy libdrm2 libdrm-common

See if this is a ubuntu issue at heart

-maybe no-

Revision history for this message
Ted Bardusch (geekzero) said :
#4

I did post the output of that command, I think the ellipsis has to be hit to show it. Here it is again:

> apt policy libdrm2 libdrm-common
libdrm2:
  Installed: 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1
  Candidate: 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1
  Version table:
 *** 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1 100
        100 /var/lib/dpkg/status
     2.4.76-1~ubuntu16.04.1 500
        500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
     2.4.67-1 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
libdrm-common:
  Installed: (none)
  Candidate: (none)
  Version table:
>

Revision history for this message
Ted Bardusch (geekzero) said :
#5

And I get it's not likely a purely Ubuntu issue, and I don't know what added this weird dependency; I just want to be rid of it, and the PackageManagerTroubleshootingProcedure page didn't clear the problem. If I have to wipe & reinstall I will, but I hate to surrender.

Revision history for this message
Bashing-om (bashing-om) said :
#6

Ted Bardusch ;'Well.

Now we know that the libdrm2 came from a git pull/
We know it is still in the system's archive directory ( got to be removed at some point to fix )
And I know from ' apt rdepends libdrm2 ' that it is related to the graphic's driver.

Now what results when we purge and reinstall ? we can simulate what will happen.
let's clean out the cache here 1st :
sudo apt clean

Now see what happens IF we were to purge libdrm2 :
sudo -s --purge autoremove libdrm2
where '-s' is simulate /

As would be good to know what is going to break when ibdrm2 is removed AND there is a problem re-installing the 2.4.76-1~ubuntu16.04.1 500 version.

-leastways, what I think-

Revision history for this message
Ted Bardusch (geekzero) said :
#7

Thanks for the help, I greatly appreciate it!

Okay here's the output:

> sudo apt clean
> sudo apt-get -s --purge autoremove libdrm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 i965-va-driver : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 intel-gpu-tools : Depends: libdrm2 (>= 2.4.61) but it is not going to be installed
 libcogl20 : Depends: libdrm2 (>= 2.4.17) but it is not going to be installed
 libdrm-amdgpu1 : Depends: libdrm2 (>= 2.4.82+git20170725.3876bc24-0ubuntu0ricotz~16.04.1) but it is not going to be installed
 libdrm-intel1 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libdrm-nouveau2 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libdrm-radeon1 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libegl1-mesa : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgbm1 : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgl1-mesa-dri : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgl1-mesa-glx : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libqt5gui5 : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 libxatracker2 : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 plymouth : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 ubuntu-drivers-common : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 xserver-xorg-core : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 xserver-xorg-video-intel : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 xserver-xorg-video-vmware : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
>

Here's what I find truly odd: this system never had an AMD GPU, it's got an Intel on-board GPU, it had a GTX 610, it now has a GTX 1050. Where the "Radeon" in that list came from is beyond me.

Is there a way to just remove the X stuff and re-install it all, then I could even put the NVidia proprietary driver on and try it.

Revision history for this message
Bashing-om (bashing-om) said :
#8

Ted Bardusch ; OK - but not really .

We have a list of what is effected .
I am all for trying to purge libdrm2 - if the system as is will allow - and re-installing libdrm2 .
sudo --purge autoremove libdrm2
sudo apt install libdrm2
I can anticipate the system will scream and holler with the removal of the affected package.
We will just have to play this by ear and see what we have to do .

Once we start this I will not be comfortable to re-boot until the package manager is consistent !

-the game is afoot-

Revision history for this message
Ted Bardusch (geekzero) said :
#9

sudo apt-get --purge autoremove libdrm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 i965-va-driver : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 intel-gpu-tools : Depends: libdrm2 (>= 2.4.61) but it is not going to be installed
 libcogl20 : Depends: libdrm2 (>= 2.4.17) but it is not going to be installed
 libdrm-amdgpu1 : Depends: libdrm2 (>= 2.4.82+git20170725.3876bc24-0ubuntu0ricotz~16.04.1) but it is not going to be installed
 libdrm-intel1 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libdrm-nouveau2 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libdrm-radeon1 : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
 libegl1-mesa : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgbm1 : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgl1-mesa-dri : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libgl1-mesa-glx : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 libqt5gui5 : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 libxatracker2 : Depends: libdrm2 (>= 2.4.75) but it is not going to be installed
 plymouth : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 ubuntu-drivers-common : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 xserver-xorg-core : Depends: libdrm2 (>= 2.3.1) but it is not going to be installed
 xserver-xorg-video-intel : Depends: libdrm2 (>= 2.4.25) but it is not going to be installed
 xserver-xorg-video-vmware : Depends: libdrm2 (>= 2.4.38) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
> sudo apt install libdrm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdrm2 is already the newest version (2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
>

Revision history for this message
Bashing-om (bashing-om) said :
#10

Ted Bardusch ; Ouch !

Sorta stumped here and scratching my head how to move forward.
Is there any significant returns:
ls -al /var/cache/apt/archives/
sudo ls -al /var/cache/apt/archives/partial/

-sometimes I do wonder-

Revision history for this message
Ted Bardusch (geekzero) said :
#11

The recipe on https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure nukes those, so:

 ls -al /var/cache/apt/archives/
total 48
drwxr-xr-x 3 root root 36864 Aug 1 15:54 .
drwxr-xr-x 3 root root 4096 Aug 1 19:36 ..
-rw-r----- 1 root root 0 Aug 1 15:54 lock
drwx------ 2 _apt root 4096 Aug 1 08:35 partial
> sudo ls -al /var/cache/apt/archives/partial/
total 44
drwx------ 2 _apt root 4096 Aug 1 08:35 .
drwxr-xr-x 3 root root 36864 Aug 1 15:54 ..
>

Revision history for this message
Bashing-om (bashing-om) said :
#12

well Ted;
/archives is not an issue .
 To my mind that libdrm2 2.4.82+git20170731.3876bc24-0ubuntu0ricotz~16.04.1 has got to go away .

All I can think to do presently is bite the bullet and drop down to a lower level.
What does
sudo dpkg -P libdrm2
do for us ?

keeping in mind if we are able to remove libdrm2, we must immediately replace it !
Maybe best as
sudo apt install --reinstall libdrm2

-a fine predicament we have here-

Revision history for this message
Ted Bardusch (geekzero) said :
#13

Man this is a pain, so grateful for your help, package managers are not my strong point. The command:

 sudo dpkg -P libdrm2
dpkg: dependency problems prevent removal of libdrm2:amd64:
 libegl1-mesa:amd64 depends on libdrm2 (>= 2.4.75).
 libdrm-nouveau2:amd64 depends on libdrm2 (>= 2.4.38).
 libdrm-radeon1:amd64 depends on libdrm2 (>= 2.4.38).
 libqt5gui5:amd64 depends on libdrm2 (>= 2.4.25).
 libgl1-mesa-glx:amd64 depends on libdrm2 (>= 2.4.75).
 libdrm-intel1:amd64 depends on libdrm2 (>= 2.4.38).
 ubuntu-drivers-common depends on libdrm2 (>= 2.3.1).
 i965-va-driver:amd64 depends on libdrm2 (>= 2.3.1); however:
  Package libdrm2:amd64 is to be removed.
 plymouth depends on libdrm2 (>= 2.4.25).
 xserver-xorg-core depends on libdrm2 (>= 2.3.1).
 libxatracker2:amd64 depends on libdrm2 (>= 2.4.75).
 xserver-xorg-video-vmware depends on libdrm2 (>= 2.4.38).
 libgl1-mesa-dri:amd64 depends on libdrm2 (>= 2.4.75).
 libgbm1:amd64 depends on libdrm2 (>= 2.4.75).
 libcogl20:amd64 depends on libdrm2 (>= 2.4.17).
 libdrm-amdgpu1:amd64 depends on libdrm2 (>= 2.4.82+git20170725.3876bc24-0ubuntu0ricotz~16.04.1).
 xserver-xorg-video-intel depends on li
dpkg: error processing package libdrm2:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libdrm2:amd64
>

Revision history for this message
Bashing-om (bashing-om) said :
#14

Ted; Welp ;

Maybe this " libdrm-amdgpu1:amd64 depends on libdrm2 (>= 2.4.82+git20170725.3876bc24-0ubuntu0ricotz~" is the key ?

What results :
sudo dpkg -P libdrm-amdgpu1

bk

Also of note is that the proposed repository is enabled . I do recommend that it be disabled prior to updating/upgrading once we have the package manager in a consistent state .

Revision history for this message
Ted Bardusch (geekzero) said :
#15

It's turtles all the way down... I took your command then tried adding to it to get it to go:

 sudo dpkg -P libdrm-amdgpu1
dpkg: dependency problems prevent removal of libdrm-amdgpu1:amd64:
 xserver-xorg-video-amdgpu depends on libdrm-amdgpu1 (>= 2.4.73).
 libgl1-mesa-dri:amd64 depends on libdrm-amdgpu1 (>= 2.4.80).

dpkg: error processing package libdrm-amdgpu1:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libdrm-amdgpu1:amd64
> sudo dpkg -P libdrm-amdgpu1 xserver-xorg-video-amdgpu libgl1-mesa-dri:amd64
(Reading database ... 217818 files and directories currently installed.)
Removing xserver-xorg-video-amdgpu (1.2.99+git20170208.49b09256-0ubuntu0ricotz~xenial) ...
dpkg: dependency problems prevent removal of libgl1-mesa-dri:amd64:
 libegl1-mesa:amd64 depends on libgl1-mesa-dri (= 17.2.0~git20170725+17.2.a455f594-0ubuntu0ricotz2~16.04.1); however:
  Package libgl1-mesa-dri:amd64 is to be removed.
 libgl1-mesa-glx:amd64 depends on libgl1-mesa-dri; however:
  Package libgl1-mesa-dri:amd64 is to be removed.

dpkg: error processing package libgl1-mesa-dri:amd64 (--purge):
 dependency problems - not removing
dpkg: dependency problems prevent removal of libdrm-amdgpu1:amd64:
 libgl1-mesa-dri:amd64 depends on libdrm-amdgpu1 (>= 2.4.80).

dpkg: error processing package libdrm-amdgpu1:amd64 (--purge):
 dependency problems - not removing
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 libgl1-mesa-dri:amd64
 libdrm-amdgpu1:amd64
>

Garf.

Revision history for this message
Ted Bardusch (geekzero) said :
#16

Also the only place I find "proposed" in the/etc/apt directory tree is:
sudo grep -ir proposed *
apt.conf.d/50unattended-upgrades:// "${distro_id}:${distro_codename}-proposed";

Does that need to be commented out and/or removed?

Revision history for this message
Ted Bardusch (geekzero) said :
#17

Think I got it.
529 sudo dpkg --remove --force-all libgl1-mesa-dri
  530 sudo apt-get install libdrm2
  531 sudo apt-get install libgl1-mesa libgl1-mesa-glx
  532 sudo apt-get install libgl1-mesa-dri libgl1-mesa-glx
  533 sudo apt-get install libdrm2
  534 sudo apt-get -f install
  535 sudo dpkg --remove --force-all libdrm.*
  536* sudo dpkg --remove --force-all
  537 sudo apt-get install libdrm2

Couldn't get libdrm2 install, so went further:

502 sudo dpkg --remove --force-all libegl1-mesa:amd64
  503 sudo dpkg --remove --force-all librdm-nouveau2:amd64
  504 sudo dpkg --remove --force-all libdrm-nouveau2:amd64
  505 sudo dpkg --remove --force-all libdrm-radeon1:amd64
  506 sudo apt-get install libdrm2
  507 sudo apt-get -f install

and a zillion things cleared. Now trying to put it back together

Revision history for this message
Bashing-om (bashing-om) said :
#18

Ted; YUk !

IRT "proposed" disregard that as I had my wires disconnected I guess as I now do not see an issue with it .

I am stuck as to a best means to remove libdrm2 !
I presently do not know what to advise.

It is late (early 00:27) here. Will sleep on this see what I can come up with .

-darndest thing-

Revision history for this message
Ted Bardusch (geekzero) said :
#19

After the autoremove worked, following the apt-get -f install, I did an install of libdrm2 which worked, then install lightdm to force all that stuff to come back on. System is working now (though not bringing up window manager on boot, but I'll take that over a broken package system).

Thanks I really appreciate your help

Revision history for this message
Bashing-om (bashing-om) said :
#20

Ted; Great news -

I was loosing sleep over this ! Pleased it has worked out.

as to the : "not bringing up window manager on boot" I would consider that the graphics driver is broke .
Bet if you check
sudo lshw -C display
you see that the display is "unclaimed" .
Depending on what the graphic's hardware is -
lspci -k|grep -iEA5 'vga|3d'
is what procedure to purge and re-install the driver .
But that is the subject for a new thread .

-just goes to show I never can tell-

Revision history for this message
Ted Bardusch (geekzero) said :
#21

The graphical UI on boot was me forgetting systemd: systemctl enable graphical.target was needed.

Revision history for this message
GSJ (gsj5) said :
#22

I did an update few days ago and have run into this same issue as well, apparently it still persists. I looked far and wide for a solution for past few days but no joy. I really don't want to rebuild my system or have to remove all libdrm2 dependent packages, per Ted in thread #17. Appreciate anyone has come up with a magic answer or at least know what caused this so I can stay away from it in future ?

I'm on a Lenovo Thinkpad X201 with Intel® Core™ i5 CPU M 520 @ 2.40GHz × 4 and Intel® Ironlake Mobile.

#uname -a
Linux gsj-x201-u 4.4.0-112-generic #135-Ubuntu SMP Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

# lshw -C display
  *-display
       description: VGA compatible controller
       product: Core Processor Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:25 memory:f2000000-f23fffff memory:d0000000-dfffffff ioport:1800(size=8)

# lspci -k|grep -iEA5 'vga|3d'
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
 Subsystem: Lenovo Core Processor Integrated Graphics Controller
 Kernel driver in use: i915
 Kernel modules: i915
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
 Subsystem: Lenovo 5 Series/3400 Series Chipset HECI Controller

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libdrm2 : Depends: libdrm-common (>= 2.4.89+git1801311830.9e34ad~oibaf~x) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

# apt depends libdrm2
libdrm2
  Depends: <libdrm-common> (>= 2.4.89+git1801311830.9e34ad~oibaf~x)
  Depends: libc6 (>= 2.17)

# dpkg -P libdrm2
dpkg: dependency problems prevent removal of libdrm2:amd64:
 libegl1-mesa:amd64 depends on libdrm2 (>= 2.4.75).
 libdrm-nouveau2:amd64 depends on libdrm2 (>= 2.4.38).
 libdrm-radeon1:amd64 depends on libdrm2 (>= 2.4.38).
 libqt5gui5:amd64 depends on libdrm2 (>= 2.4.25).
 libgl1-mesa-glx:amd64 depends on libdrm2 (>= 2.4.75).
 libdrm-intel1:amd64 depends on libdrm2 (>= 2.4.38).
 ubuntu-drivers-common depends on libdrm2 (>= 2.4.3).
 i965-va-driver:amd64 depends on libdrm2 (>= 2.3.1); however:
  Package libdrm2:amd64 is to be removed.
 plymouth depends on libdrm2 (>= 2.4.25).
 xserver-xorg-core depends on libdrm2 (>= 2.3.1); however:
  Package libdrm2:amd64 is to be removed.
 libxatracker2:amd64 depends on libdrm2 (>= 2.4.75); however:
  Package libdrm2:amd64 is to be removed.
 xserver-xorg-video-vmware depends on libdrm2 (>= 2.4.38).
 libgl1-mesa-dri:amd64 depends on libdrm2 (>= 2.4.75); however:
  Package libdrm2:amd64 is to be removed.
 libgbm1:amd64 depends on libdrm2 (>= 2.4.75).
 mesa-vdpau-drivers:amd64 depends
dpkg: error processing package libdrm2:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libdrm2:amd64