Error X.Org X Server Ubuntu after Yadedaily update

Asked by Luis Barbosa

Hi all,

This question is referent to [1], after update Yadedaily in Ubuntu 16.04LTS, user space interface kernel services fails to update.

Running the lines in terminal:
LANG=C sudo apt-get update
LANG=C sudo apt-get dist-upgrade

I got the output:

Hit:1 http://br.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://br.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://br.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Hit:4 http://archive.canonical.com/ubuntu xenial InRelease
Hit:5 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu xenial InRelease
Get:6 http://br.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [308 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:8 http://br.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB]
Hit:9 http://ppa.launchpad.net/paulo-miguel-dias/mesa/ubuntu xenial InRelease
Get:10 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [185 kB]
Get:11 http://br.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [262 kB]
Get:12 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5892 B]
Get:13 http://br.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3324 B]
Get:14 http://br.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4716 B]
Hit:15 http://www.yade-dem.org/packages xenial/ InRelease
Fetched 1302 kB in 2s (535 kB/s)
Reading package lists... Done
luis-barbosa@luis-ubuntu:~$ LANG=C sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libboost-thread1.54.0 libcairo2:i386 libcgal10 libcroco3:i386
  libdatrie1:i386 libdjvulibre21:i386 libdrm-common libglib2.0-0:i386
  libilmbase12:i386 libllvm3.8 libllvm3.8:i386 libllvm3.9 libllvm3.9:i386
  libllvm4.0 libllvm4.0:i386 libllvm5.0 libllvm5.0:i386 libllvm6.0
  libllvm6.0:i386 liblqr-1-0:i386 libmircommon5 libopenexr22:i386
  libpango-1.0-0:i386 libpixman-1-0:i386 libqwt5-qt4 libqwtplot3d-qt4-0v5
  libthai0:i386 libtxc-dxtn-s2tc0:i386 libwayland-client0:i386
  libwayland-server0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxfont2
  linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-34
  linux-headers-4.4.0-34-generic linux-headers-4.4.0-36
  linux-headers-4.4.0-36-generic linux-headers-4.4.0-38
  linux-headers-4.4.0-38-generic linux-headers-4.4.0-42
  linux-headers-4.4.0-42-generic linux-headers-4.4.0-43
  linux-headers-4.4.0-43-generic linux-headers-4.4.0-45
  linux-headers-4.4.0-45-generic linux-headers-4.4.0-47
  linux-headers-4.4.0-47-generic linux-headers-4.4.0-51
  linux-headers-4.4.0-51-generic linux-headers-4.4.0-53
  linux-headers-4.4.0-53-generic linux-headers-4.4.0-57
  linux-headers-4.4.0-57-generic linux-headers-4.4.0-59
  linux-headers-4.4.0-59-generic linux-headers-4.4.0-62
  linux-headers-4.4.0-62-generic linux-headers-4.4.0-64
  linux-headers-4.4.0-64-generic linux-headers-4.4.0-66
  linux-headers-4.4.0-66-generic linux-headers-4.4.0-67
  linux-headers-4.4.0-67-generic linux-image-4.4.0-31-generic
  linux-image-4.4.0-34-generic linux-image-4.4.0-36-generic
  linux-image-4.4.0-38-generic linux-image-4.4.0-42-generic
  linux-image-4.4.0-43-generic linux-image-4.4.0-45-generic
  linux-image-4.4.0-47-generic linux-image-4.4.0-51-generic
  linux-image-4.4.0-53-generic linux-image-4.4.0-57-generic
  linux-image-4.4.0-59-generic linux-image-4.4.0-62-generic
  linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic
  linux-image-4.4.0-67-generic linux-image-extra-4.4.0-31-generic
  linux-image-extra-4.4.0-34-generic linux-image-extra-4.4.0-36-generic
  linux-image-extra-4.4.0-38-generic linux-image-extra-4.4.0-42-generic
  linux-image-extra-4.4.0-43-generic linux-image-extra-4.4.0-45-generic
  linux-image-extra-4.4.0-47-generic linux-image-extra-4.4.0-51-generic
  linux-image-extra-4.4.0-53-generic linux-image-extra-4.4.0-57-generic
  linux-image-extra-4.4.0-59-generic linux-image-extra-4.4.0-62-generic
  linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic
  linux-image-extra-4.4.0-67-generic linux-signed-image-4.4.0-31-generic
  linux-signed-image-4.4.0-34-generic linux-signed-image-4.4.0-36-generic
  linux-signed-image-4.4.0-38-generic linux-signed-image-4.4.0-42-generic
  linux-signed-image-4.4.0-43-generic linux-signed-image-4.4.0-45-generic
  linux-signed-image-4.4.0-47-generic linux-signed-image-4.4.0-51-generic
  linux-signed-image-4.4.0-53-generic linux-signed-image-4.4.0-57-generic
  linux-signed-image-4.4.0-59-generic linux-signed-image-4.4.0-62-generic
  linux-signed-image-4.4.0-64-generic linux-signed-image-4.4.0-66-generic
  linux-signed-image-4.4.0-67-generic psensor-common snap-confine
  ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  xserver-xorg-video-ati xserver-xorg-video-radeon
The following packages will be upgraded:
  libcuda1-331-updates libcuda1-340 libcuda1-340-updates libdrm-amdgpu1
  libdrm-amdgpu1:i386 nvidia-331-updates nvidia-331-updates-uvm nvidia-340
  nvidia-340-updates nvidia-opencl-icd-340
10 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 69.3 MB/69.4 MB of archives.
After this operation, 12.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 libcuda1-340 amd64 340.102-0ubuntu0.16.04.2 [8744 kB]
Get:2 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 libcuda1-331-updates amd64 340.102-0ubuntu0.16.04.2 [4822 B]
Get:3 http://br.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 libcuda1-340-updates amd64 340.102-0ubuntu0.16.04.2 [4822 B]
Get:4 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 nvidia-340 amd64 340.102-0ubuntu0.16.04.2 [51.7 MB]
Get:5 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 nvidia-331-updates amd64 340.102-0ubuntu0.16.04.2 [4814 B]
Get:6 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 nvidia-331-updates-uvm amd64 340.102-0ubuntu0.16.04.2 [4820 B]
Get:7 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 nvidia-340-updates amd64 340.102-0ubuntu0.16.04.2 [4808 B]
Get:8 http://br.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 nvidia-opencl-icd-340 amd64 340.102-0ubuntu0.16.04.2 [8838 kB]
Fetched 69.3 MB in 1min 13s (939 kB/s)
(Reading database ... 842426 files and directories currently installed.)
Preparing to unpack .../libcuda1-340_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking libcuda1-340 (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../libcuda1-331-updates_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking libcuda1-331-updates (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../libcuda1-340-updates_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking libcuda1-340-updates (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_i386.deb ...
De-configuring libdrm-amdgpu1:amd64 (2.4.89+git1801171200.57d3d4c~x~padoka0) ...
Unpacking libdrm-amdgpu1:i386 (2.4.89+git1801190630.3509e7~oibaf~x) over (2.4.89+git1801171200.57d3d4c~x~padoka0) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_i386.deb (--unpack):
 trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.89+git1801171200.57d3d4c~x~padoka0
Preparing to unpack .../libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_amd64.deb ...
De-configuring libdrm-amdgpu1:i386 (2.4.89+git1801171200.57d3d4c~x~padoka0) ...
Unpacking libdrm-amdgpu1:amd64 (2.4.89+git1801190630.3509e7~oibaf~x) over (2.4.89+git1801171200.57d3d4c~x~padoka0) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_amd64.deb (--unpack):
 trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.89+git1801171200.57d3d4c~x~padoka0
Preparing to unpack .../nvidia-340_340.102-0ubuntu0.16.04.2_amd64.deb ...
Stopping nvidia-persistenced
nvidia-persistenced: no process found
Done.
Removing all DKMS Modules
Done.
Stopping previous nvidia-persistenced
nvidia-persistenced: no process found
Done.
Unpacking nvidia-340 (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../nvidia-331-updates_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking nvidia-331-updates (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../nvidia-331-updates-uvm_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking nvidia-331-updates-uvm (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../nvidia-340-updates_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking nvidia-340-updates (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Preparing to unpack .../nvidia-opencl-icd-340_340.102-0ubuntu0.16.04.2_amd64.deb ...
Unpacking nvidia-opencl-icd-340 (340.102-0ubuntu0.16.04.2) over (340.102-0ubuntu0.16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_i386.deb
 /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Has anyone experienced something like that?

[1] https://answers.launchpad.net/yade/+question/663267

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luis Barbosa
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The important hint is:

dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_amd64.deb (--unpack):
trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common

Apparently the file '/usr/share/libdrm/amdgpu.ids' is contained in the standard Ubuntu package libdrm-common and also in the packages libdrm-amdgpu1_2.4.89+git1801190630.3509e7~oibaf~x_*.deb from the ppa:oibaf/graphics-drivers PPA.

And the package management system of course complains that files of one package are overwritten by another one.

I see the following options:
1. uninstall the libdrm-common common (I am not sure whether some other packages depend on it)
or
2. force the package management system to allow overwriting of files

Ad 1) To check for possible broken dependencies, what is the output of
apt-get --simulate remove libdrm-common

Ad 2) The command to for installation with overwriting would probably be
sudo apt-get -o Dpkg::Options::="--force-overwrite" upgrade
but before trying this you should check whether option 1 is feasible.

Revision history for this message
Luis Barbosa (luis-pires-b) said :
#2

After an Ubuntu system update, that problem was solved without the need of any action.

I appreciate all the attention.

Luis