libdrm2 broken dependencies; have followed troubleshooting but not fixed
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+
E: Error, pkgProblemResol
E: Unable to correct dependencies
>
To fix, tried doing as https:/
> ubuntu-
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/
cat: /etc/dpkg/
>
> dpkg --print-
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/
>
> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
>
> 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/
>
> sudo rm /var/cache/
>
> sudo rm /var/lib/dpkg/lock
>
> sudo cp -arf /var/lib/dpkg /var/lib/
>
> sudo mv /var/lib/
>
> sudo cp /var/lib/
>
> sudo mv /var/lib/
>
> sudo cp /var/lib/
cp: cannot stat '/var/lib/
>
> sudo rm -rf /var/lib/
>
> sudo rm -rf /var/lib/apt/lists
>
> sudo rm /var/cache/
>
> sudo mkdir /var/lib/apt/lists
>
> sudo mkdir /var/lib/
>
> 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+
E: Error, pkgProblemResol
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+
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+
E: Unmet dependencies. Try using -f.
>
> LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Get:56 http://
Get:57 http://
Get:58 http://
Get:59 http://
Get:60 http://
Get:61 http://
Get:62 http://
Get:63 http://
Get:64 http://
Get:65 http://
Get:66 http://
Get:67 http://
Get:68 http://
Get:69 http://
Get:70 http://
Get:71 http://
Get:72 http://
Get:73 http://
Get:74 http://
Fetched 40.6 MB in 1min 1s (660 kB/s)
Reading package lists... Done
>
> LANG=C;sudo apt-get update -o APT::Cache-
Hit:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
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+
E: Unmet dependencies. Try using -f.
>
> find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb http://
2 # deb-src http://
3 # deb-src http://
/etc/apt/
1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6 # deb-src http://
7
8 ## Major bug fix updates produced after the final release of the
9 ## distribution.
10 deb http://
11 # deb-src http://
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://
19 # deb-src http://
20 deb http://
21 # deb-src http://
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://
29 # deb-src http://
30 deb http://
31 # deb-src http://
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://
39 # deb-src http://
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://
46 # deb-src http://
47
48 deb http://
49 # deb-src http://
50 deb http://
51 # deb-src http://
52 deb http://
53 # deb-src http://
>
> 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: