Package dependency tree broken : unmet dependencies [duplicate]
This question already has an answer here:
dpkg error: “trying to overwrite file, which is also in…”
4 answers
I have just broken my dependency tree after doing :
sudo apt-get update
sudo apt-get upgrade
Now when I try installing anything, I get the following error
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:
ffmpeg : Depends: libavdevice57 (>= 7:3.4.4) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.8) but it is not going to be installed
libglx-mesa0 : Depends: libglapi-mesa (= 18.0.5-0ubuntu0~18.04.1) but 18.2.2-0ubuntu1~18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I try
sudo apt --fix-broken install
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libglx-mesa0
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 0 B/134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to install libglx-mesa0 through
sudo apt-get install libglx-mesa0
But I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 18.2.2-0ubuntu1~18.04.1 [134 kB]
Fetched 134 kB in 0s (895 kB/s)
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you help me to repair it, please ?
apt package-management upgrade dependencies
marked as duplicate by karel, Kulfy, Charles Green, user68186, Eric Carvalho Feb 4 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
dpkg error: “trying to overwrite file, which is also in…”
4 answers
I have just broken my dependency tree after doing :
sudo apt-get update
sudo apt-get upgrade
Now when I try installing anything, I get the following error
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:
ffmpeg : Depends: libavdevice57 (>= 7:3.4.4) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.8) but it is not going to be installed
libglx-mesa0 : Depends: libglapi-mesa (= 18.0.5-0ubuntu0~18.04.1) but 18.2.2-0ubuntu1~18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I try
sudo apt --fix-broken install
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libglx-mesa0
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 0 B/134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to install libglx-mesa0 through
sudo apt-get install libglx-mesa0
But I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 18.2.2-0ubuntu1~18.04.1 [134 kB]
Fetched 134 kB in 0s (895 kB/s)
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you help me to repair it, please ?
apt package-management upgrade dependencies
marked as duplicate by karel, Kulfy, Charles Green, user68186, Eric Carvalho Feb 4 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Thanks ! This repaired the issue :sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05
add a comment |
This question already has an answer here:
dpkg error: “trying to overwrite file, which is also in…”
4 answers
I have just broken my dependency tree after doing :
sudo apt-get update
sudo apt-get upgrade
Now when I try installing anything, I get the following error
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:
ffmpeg : Depends: libavdevice57 (>= 7:3.4.4) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.8) but it is not going to be installed
libglx-mesa0 : Depends: libglapi-mesa (= 18.0.5-0ubuntu0~18.04.1) but 18.2.2-0ubuntu1~18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I try
sudo apt --fix-broken install
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libglx-mesa0
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 0 B/134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to install libglx-mesa0 through
sudo apt-get install libglx-mesa0
But I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 18.2.2-0ubuntu1~18.04.1 [134 kB]
Fetched 134 kB in 0s (895 kB/s)
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you help me to repair it, please ?
apt package-management upgrade dependencies
This question already has an answer here:
dpkg error: “trying to overwrite file, which is also in…”
4 answers
I have just broken my dependency tree after doing :
sudo apt-get update
sudo apt-get upgrade
Now when I try installing anything, I get the following error
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:
ffmpeg : Depends: libavdevice57 (>= 7:3.4.4) but it is not going to be installed
Depends: libsdl2-2.0-0 (>= 2.0.8) but it is not going to be installed
libglx-mesa0 : Depends: libglapi-mesa (= 18.0.5-0ubuntu0~18.04.1) but 18.2.2-0ubuntu1~18.04.1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
When I try
sudo apt --fix-broken install
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libglx-mesa0
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 0 B/134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to install libglx-mesa0 through
sudo apt-get install libglx-mesa0
But I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
libglx-mesa0
1 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
37 not fully installed or removed.
Need to get 134 kB of archives.
After this operation, 9 216 B of additional disk space will be used.
Get:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libglx-mesa0 amd64 18.2.2-0ubuntu1~18.04.1 [134 kB]
Fetched 134 kB in 0s (895 kB/s)
(Reading database ... 238586 files and directories currently installed.)
Preparing to unpack .../libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (18.2.2-0ubuntu1~18.04.1) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0', which is also in package nvidia-396 396.44-0ubuntu1
Errors were encountered while processing:
/var/cache/apt/archives/libglx-mesa0_18.2.2-0ubuntu1~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can you help me to repair it, please ?
This question already has an answer here:
dpkg error: “trying to overwrite file, which is also in…”
4 answers
apt package-management upgrade dependencies
apt package-management upgrade dependencies
edited Feb 3 at 17:50
YellowishLight
asked Feb 3 at 17:29
YellowishLightYellowishLight
167
167
marked as duplicate by karel, Kulfy, Charles Green, user68186, Eric Carvalho Feb 4 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by karel, Kulfy, Charles Green, user68186, Eric Carvalho Feb 4 at 16:26
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
1
Thanks ! This repaired the issue :sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05
add a comment |
1
Thanks ! This repaired the issue :sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05
1
1
Thanks ! This repaired the issue :
sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05
Thanks ! This repaired the issue :
sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05
add a comment |
1 Answer
1
active
oldest
votes
Had similar problems while trying to install Nvidia drivers.
sudo apt purge nvidia*
Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)
While rebooting press SHIFT key, this will bring up GRUB bootloader.
Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"
Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.
Edit: if you need CUDA + NVIDIA 410:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0
If you want just CUDA skip the installation of nvidia-driver-410
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Had similar problems while trying to install Nvidia drivers.
sudo apt purge nvidia*
Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)
While rebooting press SHIFT key, this will bring up GRUB bootloader.
Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"
Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.
Edit: if you need CUDA + NVIDIA 410:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0
If you want just CUDA skip the installation of nvidia-driver-410
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
add a comment |
Had similar problems while trying to install Nvidia drivers.
sudo apt purge nvidia*
Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)
While rebooting press SHIFT key, this will bring up GRUB bootloader.
Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"
Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.
Edit: if you need CUDA + NVIDIA 410:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0
If you want just CUDA skip the installation of nvidia-driver-410
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
add a comment |
Had similar problems while trying to install Nvidia drivers.
sudo apt purge nvidia*
Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)
While rebooting press SHIFT key, this will bring up GRUB bootloader.
Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"
Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.
Edit: if you need CUDA + NVIDIA 410:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0
If you want just CUDA skip the installation of nvidia-driver-410
Had similar problems while trying to install Nvidia drivers.
sudo apt purge nvidia*
Switch back to driver nouveau and reboot (at this point your dependency issue should be fixed)
While rebooting press SHIFT key, this will bring up GRUB bootloader.
Once in GRUB press "e" key to edit default entry and add "nomodeset" right before "quiet splash"
Once logged in install the Nvidia drivers again, possibly (if you have GUI) use the "Additional Drivers" tab from Software Updates utility in Ubuntu. I'm using Nvidia 410 and I suggest you doing the same if you don't have any special needs.
Edit: if you need CUDA + NVIDIA 410:
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo bash -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
sudo apt update
sudo apt install nvidia-driver-410
sudo apt install cuda-10-0
If you want just CUDA skip the installation of nvidia-driver-410
edited Feb 3 at 18:12
answered Feb 3 at 17:50
Cristian VrinceanuCristian Vrinceanu
1025
1025
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
add a comment |
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
I installed Cuda-9.2 that depended on the Nvidia version 396, will this break my Cuda install ?
– YellowishLight
Feb 3 at 17:52
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
Install cuda 10 instead, see the edit to my answer.
– Cristian Vrinceanu
Feb 3 at 18:10
add a comment |
1
Thanks ! This repaired the issue :
sudo apt-get -o Dpkg::Options::="--force-overwrite" install <package-name>
– YellowishLight
Feb 3 at 18:05