leo@taipei:~$ sudo apt autoremove
[sudo] password for leo:
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:
libdrm-dev : Depends: libdrm-amdgpu1 (= 2.4.84+git1710130630.290d29~gd~z) but 2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1 is installed
mesa-vdpau-drivers : Depends: libdrm-amdgpu1 (>= 2.4.84+git1710130630.290d29~gd~z) but 2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
leo@taipei:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libdrm-common
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libdrm-amdgpu1 libdrm-amdgpu1:i386
The following packages will be upgraded:
libdrm-amdgpu1 libdrm-amdgpu1:i386
2 to upgrade, 0 to newly install, 0 to remove and 42 not to upgrade.
12 not fully installed or removed.
Need to get 0 B/61.6 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 397584 files and directories currently installed.)
Preparing to unpack .../libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_amd64.deb ...
De-configuring libdrm-amdgpu1:i386 (2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1) ...
Unpacking libdrm-amdgpu1:amd64 (2.4.84+git1710130630.290d29~gd~z) over (2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_amd64.deb (--unpack):
trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1
Preparing to unpack .../libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_i386.deb ...
De-configuring libdrm-amdgpu1:amd64 (2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1) ...
Unpacking libdrm-amdgpu1:i386 (2.4.84+git1710130630.290d29~gd~z) over (2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_i386.deb (--unpack):
trying to overwrite '/usr/share/libdrm/amdgpu.ids', which is also in package libdrm-common 2.4.83+git20170928.7c711886-0ubuntu0ricotz~17.04.1
Errors were encountered while processing:
/var/cache/apt/archives/libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_amd64.deb
/var/cache/apt/archives/libdrm-amdgpu1_2.4.84+git1710130630.290d29~gd~z_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)