![]() ![]() Run the following to delete it: sudo vim /etc/apt/sources.list If you get the problem of broken packages, it has happened since you added repo to the apt/sources.lst. Sudo /usr/local/cuda-11.4/bin/cuda-uninstaller Use it for the uninstallation instead: # To uninstall cuda If you have installed via source files (assuming the default location to be /usr/local) then remove it using: sudo rm -rf /usr/local/cuda*įrom cuda 11.4 onwards, an uninstaller script has been provided. ![]() To remove Nvidia drivers: sudo apt-get -purge remove "*nvidia*" To remove cuda toolkit: sudo apt-get -purge remove "*cublas*" "cuda*" "nsight*" If you have installed using apt-get use the following to remove the packages completely from the system: There are two things- nvidia drivers and cuda toolkit- which you may want to remove. var/cache/apt/archives/libcublas-dev_10.2.0.168-1_bĮ: Sub-process /usr/bin/dpkg returned an error code (1) Trying to overwrite '/usr/lib/x86_64-linux-gnu/libcublas_static.a', which is also in package nvidia-cuda-dev 9.1.85-3ubuntu1ĭpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Įrrors were encountered while processing: ]ĭpkg: error processing archive /var/cache/apt/archives/libcublas-dev_10.2.0.168-1_b (-unpack): 253408 files and directories currently installed.) The following additional packages will be installed:ġ upgraded, 0 newly installed, 0 to remove and 145 not upgraded.Īfter this operation, 3,458 kB disk space will be freed. Then I tried to run 'apt -fix-broken install', but got the following error: Reading package lists. Try 'apt -fix-broken install' with no packages (or specify a solution). You might want to run 'apt -fix-broken install' to correct these. Sudo rm -rf /root/snap /root/snap/snap-store /usr/share/doc/libsnapd-glib1 /usr/share/doc/gir1.2-snapd-1Ĭat <<EOF | sudo tee /etc/apt/preferences.d/snapdĬat <<EOF | sudo tee /etc/apt/preferences.I have ubuntu 18.04, and accidentally installed cuda 9.1 to run Tensorflow-gpu, but it seems tensorflow-gpu requires cuda 10.0, so I want to remove cuda first by executing: sudo apt-get remove -auto-remove nvidia-cuda-toolkit ![]() Sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd # probably best to manually type this commands individually checking for problems Run the exploratory informational commands listed in the comments to determine the specific situation in your install.Īlso installs Deb packaged last known Chromium and pins it to prevent snapd taking over again in future. Some you won't need, and for some you may need one or two extra lines. I recommend you run the commands individually. From the snap list, I see gnome depends on snap.įull credit to Don Prince for a comprehensive and effective solution from this link My question is how to safely remove snap. Snapd 2.46.1 9279 latest/stable canonical✓ snapd Name Version Rev Tracking Publisher NotesĬhromium. I don't have many packages handled by snap. How can I fully uninstall snap and re-install its packages by regular apt? Now, I have to reconfigure it after each start by sudo apparmor_parser -r /etc/apparmor.d/*snap-confine* ![]() If a package changes configuration in a new version, it's its responsibility to make it work. Refusing to continue to avoid permission escalation attacks: Operation not permitted After an upgrade, Chromium does not start due to the following error: chromium_sktop: snap-confine has elevated permissions and is not confined but should be. I've been using Ubuntu for 12 years, and snap in the recent releases of Ubuntu is really a disgrace. ![]()
0 Comments
Leave a Reply. |