Article 6PN7W Undo sudo apt remove nvidia-cuda-toolkit && sudo apt autoremove

Undo sudo apt remove nvidia-cuda-toolkit && sudo apt autoremove

by
davide445
from LinuxQuestions.org on (#6PN7W)
Working on KDE Neon 6.0 (Ubuntu 22.04) I have discovered installed cuda runtime version is 11.1 and cuda driver version 12.2, to upgrade the runtime (I needed >12 to install a package) I followed a post suggestion proposing to execute first

sudo apt remove nvidia-cuda-toolkit && sudo apt autoremove

and next reinstall cuda runtime from https://developer.nvidia.com/cuda-12...type=deb_local

As a newbie I didn't noticed/don't understand the effect of autoremove, and only looking at the console I noticed how many packages was actually removed. I stopped the process at 30% before finished (closing the bash console).

Looking at apt logs I was able to identify the removed packages (attached the relevant log portion), trying to reinstall them using

sudo apt install --reinstall (list of packages)

I got the answer

E:Unable to locate package libntfs-3g883
E:Unable to locate package libperl5.30
E:Couldn't find any package by glob 'libperl5.30'
E:Unable to locate package nvidia-firmware-535
E:Unable to locate package libvpx6
E:Unable to locate package libcodec2-0.9
E:Couldn't find any package by glob 'libcodec2-0.9'
E:Package 'linux-image-5.15.0-48-generic' has no installation candidate
E:Unable to locate package libkwaylandserver5-1
E:Unable to locate package liblivemedia77
E:Unable to locate package libidn11
E:Unable to locate package libsnmp35
E:Unable to locate package libebml4v5
E:Package 'linux-headers-5.15.0-57-generic' has no installation candidate
E:Unable to locate package libnettle7
E:Unable to locate package libcfitsio8
E:Unable to locate package libx264-155
E:Unable to locate package linux-headers-5.4.0-91
E:Couldn't find any package by glob 'linux-headers-5.4.0-91'
E:Unable to locate package libusageenvironment3
E:Unable to locate package libmpdec2
E:Unable to locate package libaom0
E:Package 'linux-headers-5.15.0-52-generic' has no installation candidate
E:Unable to locate package libre2-5
E:Unable to locate package libx265-179
E:Unable to locate package libtinyxml2-6a
E:Package 'linux-headers-5.15.0-56-generic' has no installation candidate
E:Unable to locate package libgps26
E:Package 'linux-modules-5.15.0-67-generic' has no installation candidate
E:Unable to locate package libmbedcrypto3
E:Package 'linux-modules-5.15.0-52-generic' has no installation candidate
E:Package 'linux-modules-5.4.0-131-generic' has no installation candidate
E:Unable to locate package libgroupsock8
E:Package 'linux-modules-5.15.0-56-generic' has no installation candidate
E:Package 'linux-image-5.19.0-35-generic' has no installation candidate
E:Package 'linux-headers-5.15.0-53-generic' has no installation candidate
E:Unable to locate package libboost-filesystem1.71.0
E:Couldn't find any package by glob 'libboost-filesystem1.71.0'
E:Package 'linux-modules-5.15.0-53-generic' has no installation candidate
E:Unable to locate package libprotobuf-lite17
E:Package 'linux-modules-5.4.0-132-generic' has no installation candidate
E:Package 'linux-headers-5.15.0-48-generic' has no installation candidate
E:Unable to locate package libopenexr24
E:Package 'linux-modules-5.15.0-57-generic' has no installation candidate
E:Unable to locate package libgit2-28
E:Package 'libldap-2.4-2' has no installation candidate
E:Package 'linux-modules-5.15.0-48-generic' has no installation candidate
E:Package 'libreadline5' has no installation candidate
E:Unable to locate package libplacebo7
E:Unable to locate package nvidia-firmware-535
E:Package 'libsrt1' has no installation candidate
E:Unable to locate package nvidia-firmware-535-server
E:Unable to locate package linux-hwe-5.15-headers-5.15.0-48
E:Couldn't find any package by glob 'linux-hwe-5.15-headers-5.15.0-48'
E:Unable to locate package linux-hwe-5.15-headers-5.15.0-52
E:Couldn't find any package by glob 'linux-hwe-5.15-headers-5.15.0-52'
E:Unable to locate package linux-hwe-5.15-headers-5.15.0-53
E:Couldn't find any package by glob 'linux-hwe-5.15-headers-5.15.0-53'
E:Package 'linux-modules-extra-5.15.0-67-generic' has no installation candidate
E:Unable to locate package nvidia-firmware-535
E:Unable to locate package libqalculate20
E:Package 'ippusbxd' has no installation candidate
E:Unable to locate package libpoppler124
E:Unable to locate package libpoppler126
E:Unable to locate package libbasicusageenvironment1
E:Unable to locate package libwebp6
E:Unable to locate package libjson-c4
E:Package 'linux-modules-extra-5.15.0-53-generic' has no installation candidate
E:Unable to locate package libkf5k

Kindly asking if there is a way to reinstall all missing packages.

Attached Files
txt.gifhistory.log.1.txt (34.7 KB)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments