I am not able to install anything in ubuntu





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















The following is the message I get when trying to install anything on Ubuntu, right now.



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:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


I tried apt --fix-broken install, I tried purge, I tried sudo apt install -f, and also sudo apt-get remove --purge '^nvidia-.*' and I am not able to get anything done. It all fails.



I tired rebooting in recovery mode to try and uninstall the drivers.



This is my output for 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:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libcublas-dev
The following NEW packages will be installed:
libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 735451 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.1.0.105-1_amd64.deb ...
Unpacking libcublas-dev (10.1.0.105-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas_v2.h', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Can someone please help me? I've been spending hours trying to fix this. I tried installing cuda 10.1 along with an already present installation of cuda 9.1. This turned out to be a mistake. My older cuda installation works fine, but dpkg completely broke, and it is not working anymore.



Without uninstalling the previous version of cuda, I directly tried installing the 10.1 version (by mistake). I tried installing by following the link given here: https://developer.nvidia.com/cuda-downloads. I selected: Linux -> x86_64 -> Ubuntu -> 18.04 -> deb(network) And I followed the instructions over there.



I am not able to install anything, because of this.










share|improve this question


















  • 1





    What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

    – guiverc
    2 days ago











  • I'm using Ubuntu 18.04

    – Sreram
    2 days ago






  • 1





    @guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

    – mchid
    2 days ago




















2















The following is the message I get when trying to install anything on Ubuntu, right now.



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:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


I tried apt --fix-broken install, I tried purge, I tried sudo apt install -f, and also sudo apt-get remove --purge '^nvidia-.*' and I am not able to get anything done. It all fails.



I tired rebooting in recovery mode to try and uninstall the drivers.



This is my output for 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:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libcublas-dev
The following NEW packages will be installed:
libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 735451 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.1.0.105-1_amd64.deb ...
Unpacking libcublas-dev (10.1.0.105-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas_v2.h', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Can someone please help me? I've been spending hours trying to fix this. I tried installing cuda 10.1 along with an already present installation of cuda 9.1. This turned out to be a mistake. My older cuda installation works fine, but dpkg completely broke, and it is not working anymore.



Without uninstalling the previous version of cuda, I directly tried installing the 10.1 version (by mistake). I tried installing by following the link given here: https://developer.nvidia.com/cuda-downloads. I selected: Linux -> x86_64 -> Ubuntu -> 18.04 -> deb(network) And I followed the instructions over there.



I am not able to install anything, because of this.










share|improve this question


















  • 1





    What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

    – guiverc
    2 days ago











  • I'm using Ubuntu 18.04

    – Sreram
    2 days ago






  • 1





    @guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

    – mchid
    2 days ago
















2












2








2








The following is the message I get when trying to install anything on Ubuntu, right now.



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:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


I tried apt --fix-broken install, I tried purge, I tried sudo apt install -f, and also sudo apt-get remove --purge '^nvidia-.*' and I am not able to get anything done. It all fails.



I tired rebooting in recovery mode to try and uninstall the drivers.



This is my output for 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:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libcublas-dev
The following NEW packages will be installed:
libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 735451 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.1.0.105-1_amd64.deb ...
Unpacking libcublas-dev (10.1.0.105-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas_v2.h', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Can someone please help me? I've been spending hours trying to fix this. I tried installing cuda 10.1 along with an already present installation of cuda 9.1. This turned out to be a mistake. My older cuda installation works fine, but dpkg completely broke, and it is not working anymore.



Without uninstalling the previous version of cuda, I directly tried installing the 10.1 version (by mistake). I tried installing by following the link given here: https://developer.nvidia.com/cuda-downloads. I selected: Linux -> x86_64 -> Ubuntu -> 18.04 -> deb(network) And I followed the instructions over there.



I am not able to install anything, because of this.










share|improve this question














The following is the message I get when trying to install anything on Ubuntu, right now.



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:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.1.0.105) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


I tried apt --fix-broken install, I tried purge, I tried sudo apt install -f, and also sudo apt-get remove --purge '^nvidia-.*' and I am not able to get anything done. It all fails.



I tired rebooting in recovery mode to try and uninstall the drivers.



This is my output for 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:
libnvidia-common-390
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libcublas-dev
The following NEW packages will be installed:
libcublas-dev
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
8 not fully installed or removed.
Need to get 0 B/39.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 735451 files and directories currently installed.)
Preparing to unpack .../libcublas-dev_10.1.0.105-1_amd64.deb ...
Unpacking libcublas-dev (10.1.0.105-1) ...
dpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb (--unpack):
trying to overwrite '/usr/include/cublas_v2.h', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libcublas-dev_10.1.0.105-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Can someone please help me? I've been spending hours trying to fix this. I tried installing cuda 10.1 along with an already present installation of cuda 9.1. This turned out to be a mistake. My older cuda installation works fine, but dpkg completely broke, and it is not working anymore.



Without uninstalling the previous version of cuda, I directly tried installing the 10.1 version (by mistake). I tried installing by following the link given here: https://developer.nvidia.com/cuda-downloads. I selected: Linux -> x86_64 -> Ubuntu -> 18.04 -> deb(network) And I followed the instructions over there.



I am not able to install anything, because of this.







drivers apt nvidia package-management cuda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









SreramSreram

74129




74129








  • 1





    What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

    – guiverc
    2 days ago











  • I'm using Ubuntu 18.04

    – Sreram
    2 days ago






  • 1





    @guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

    – mchid
    2 days ago
















  • 1





    What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

    – guiverc
    2 days ago











  • I'm using Ubuntu 18.04

    – Sreram
    2 days ago






  • 1





    @guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

    – mchid
    2 days ago










1




1





What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

– guiverc
2 days ago





What release of Ubuntu are you using? I did a package check for one chosen at random (packages.ubuntu.com/…), and it requires the 19.04 version (Ubuntu 19.04 is off-topic until it's release later in the month)

– guiverc
2 days ago













I'm using Ubuntu 18.04

– Sreram
2 days ago





I'm using Ubuntu 18.04

– Sreram
2 days ago




1




1





@guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

– mchid
2 days ago







@guiverc I think those packages come from the nvidia repo that the user downloaded from developer.nvidia.com/cuda-downloads when they chose to download "deb(network)" which is basically a ppa installer but it's just a repo and not a ppa.

– mchid
2 days ago












1 Answer
1






active

oldest

votes


















8














Okay, to back out of this, run the following commands:



sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f


This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.



You may need to do some more purging and we may have to use dpkg to do that manually so please post any more errors. Thanks!






share|improve this answer


























  • Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

    – Sreram
    2 days ago













  • @Sreram Awesome, that was easier than I thought.

    – mchid
    2 days ago






  • 1





    @Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

    – mchid
    2 days ago













  • Yes sure! Thanks a lot!!

    – Sreram
    2 days ago












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132090%2fi-am-not-able-to-install-anything-in-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









8














Okay, to back out of this, run the following commands:



sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f


This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.



You may need to do some more purging and we may have to use dpkg to do that manually so please post any more errors. Thanks!






share|improve this answer


























  • Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

    – Sreram
    2 days ago













  • @Sreram Awesome, that was easier than I thought.

    – mchid
    2 days ago






  • 1





    @Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

    – mchid
    2 days ago













  • Yes sure! Thanks a lot!!

    – Sreram
    2 days ago
















8














Okay, to back out of this, run the following commands:



sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f


This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.



You may need to do some more purging and we may have to use dpkg to do that manually so please post any more errors. Thanks!






share|improve this answer


























  • Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

    – Sreram
    2 days ago













  • @Sreram Awesome, that was easier than I thought.

    – mchid
    2 days ago






  • 1





    @Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

    – mchid
    2 days ago













  • Yes sure! Thanks a lot!!

    – Sreram
    2 days ago














8












8








8







Okay, to back out of this, run the following commands:



sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f


This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.



You may need to do some more purging and we may have to use dpkg to do that manually so please post any more errors. Thanks!






share|improve this answer















Okay, to back out of this, run the following commands:



sudo rm /etc/apt/sources.list.d/cuda.list
sudo apt-get clean
sudo apt-get update
sudo apt install -f


This will uninstall the nvidia repo you downloaded and installed and hopefully the system will fix itself now. If not, we can fix it manually fairly easily by following the error messages.



You may need to do some more purging and we may have to use dpkg to do that manually so please post any more errors. Thanks!







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered 2 days ago









mchidmchid

23.6k25287




23.6k25287













  • Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

    – Sreram
    2 days ago













  • @Sreram Awesome, that was easier than I thought.

    – mchid
    2 days ago






  • 1





    @Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

    – mchid
    2 days ago













  • Yes sure! Thanks a lot!!

    – Sreram
    2 days ago



















  • Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

    – Sreram
    2 days ago













  • @Sreram Awesome, that was easier than I thought.

    – mchid
    2 days ago






  • 1





    @Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

    – mchid
    2 days ago













  • Yes sure! Thanks a lot!!

    – Sreram
    2 days ago

















Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

– Sreram
2 days ago







Thank you very much!!! I was now able to completely remove Nvidia! I used purge and uninstalled everything.

– Sreram
2 days ago















@Sreram Awesome, that was easier than I thought.

– mchid
2 days ago





@Sreram Awesome, that was easier than I thought.

– mchid
2 days ago




1




1





@Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

– mchid
2 days ago







@Sreram Please let me know if you have trouble re-installing nvidia and cuda9.1.

– mchid
2 days ago















Yes sure! Thanks a lot!!

– Sreram
2 days ago





Yes sure! Thanks a lot!!

– Sreram
2 days ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132090%2fi-am-not-able-to-install-anything-in-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

GameSpot

connect to host localhost port 22: Connection refused

Getting a Wifi WPA2 wifi connection