Apt holds some packages... strange

I'm back from holiday in Croatia, and now I tried to update packages.
Apt tells me that some packages are been holded...
How can I solve this?

signorcastello@nicolo-pc:~$ sudo apt update && sudo apt upgrade
[sudo] password for signorcastello:                 
Hit:1 http://ppa.launchpad.net/zorinos/apps/ubuntu focal InRelease             
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease                         
Get:3 https://mega.nz/linux/repo/xUbuntu_20.04 ./ InRelease [2.961 B]          
Hit:4 http://ppa.launchpad.net/zorinos/drivers/ubuntu focal InRelease          
Hit:5 https://assets.checkra.in/debian  InRelease                              
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]        
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:8 http://ppa.launchpad.net/zorinos/patches/ubuntu focal InRelease          
Hit:9 http://ppa.launchpad.net/zorinos/stable/ubuntu focal InRelease           
Get:10 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]     
Hit:11 https://packages.zorinos.com/stable focal InRelease                   
Hit:12 https://repo.waydro.id focal InRelease                                  
Get:13 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:14 https://packages.zorinos.com/patches focal InRelease
Hit:15 https://packages.zorinos.com/apps focal InRelease 
Hit:16 https://packages.zorinos.com/drivers focal InRelease
Fetched 339 kB in 3s (117 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
20 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  libfwupdplugin5 linux-headers-5.15.0-46-generic
  linux-hwe-5.15-headers-5.15.0-46 linux-image-5.15.0-46-generic
  linux-modules-5.15.0-46-generic linux-modules-extra-5.15.0-46-generic
  zorin-windows-app-support-installation-shortcut
The following packages have been kept back:
  libnvidia-cfg1-510 libnvidia-compute-510 libnvidia-decode-510
  libnvidia-encode-510 libnvidia-extra-510 libnvidia-fbc1-510 libnvidia-gl-510
  nvidia-compute-utils-510 nvidia-dkms-510 nvidia-driver-510
  nvidia-kernel-common-510 nvidia-kernel-source-510 nvidia-utils-510
  xserver-xorg-video-nvidia-510
The following packages will be upgraded:
  bolt fwupd linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04
  linux-image-generic-hwe-20.04 zorin-os-desktop
6 upgraded, 7 newly installed, 0 to remove and 14 not upgraded.
Need to get 107 MB of archives.
After this operation, 588 MB of additional disk space will be used.
Do you want to continue? [Y/n] 


1 Like

sudo apt upgrade

5 Likes

I don't understand. I used 'sudo apt update && sudo apt upgrade'
but apt is holding nvidia packages.
How can I solve this?

3 Likes

sudo apt-get update && sudo apt-get dist-upgrade

5 Likes

No, same problem...

The following packages have been kept back:
  libnvidia-compute-510 libnvidia-decode-510 libnvidia-encode-510
  libnvidia-fbc1-510 libnvidia-gl-510

3 Likes

https://www.cyberciti.biz/faq/apt-get-hold-back-packages-command/

5 Likes

You can use synaptic package manager to update the nvidia drivers. There is a command to do it in apt, but i don't recall off the top of my head. I'll look in a bit to find it.

2 Likes

I found it:
sudo apt-mark unhold (PACKAGE-NAME)

Once it is unheld, you will be able to update them. Change (PACKAGE-NAME) with whatever the package's name is.

1 Like

@anon6471198 gave the article containing the same codes :joy_cat:

2 Likes

I didn't leave the forum and found the information. Links don't always need to be external. If anyone would use the search function of the forum you can find a lot of information without surfing other sites.

same error.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gir1.2-ges-1.0 libfwupdplugin1 libges-1.0-0 libjs-jquery-ui pitivi
  python-matplotlib-data python3-cycler python3-kiwisolver python3-matplotlib
  python3-numpy
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  fonts-comic-neue fonts-crosextra-caladea fonts-crosextra-carlito
  libfwupdplugin5 linux-headers-5.15.0-46-generic
  linux-hwe-5.15-headers-5.15.0-46 linux-image-5.15.0-46-generic
  linux-modules-5.15.0-46-generic linux-modules-extra-5.15.0-46-generic
  zorin-windows-app-support-installation-shortcut
The following packages have been kept back:
  libnvidia-cfg1-510 libnvidia-compute-510 libnvidia-decode-510
  libnvidia-encode-510 libnvidia-extra-510 libnvidia-fbc1-510 libnvidia-gl-510
  nvidia-compute-utils-510 nvidia-dkms-510 nvidia-driver-510
  nvidia-kernel-common-510 nvidia-kernel-source-510 nvidia-utils-510
  xserver-xorg-video-nvidia-510
The following packages will be upgraded:
  bolt fonts-croscore-config-zorin-os fonts-inter-zorin-os
  fonts-jetbrains-mono-zorin-os fonts-michroma-zorin-os
  fonts-roboto-mono-zorin-os fonts-sans-forgetica-zorin-os
  fonts-space-grotesk-zorin-os fonts-zorin-os-core fwupd libxslt1.1
  linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04
  linux-image-generic-hwe-20.04 zorin-os-artwork zorin-os-desktop
  zorin-os-minimal zorin-os-standard
18 upgraded, 10 newly installed, 0 to remove and 14 not upgraded.
1 not fully installed or removed.
Need to get 111 MB of archives.
After this operation, 591 MB of additional disk space will be used.
Do you want to continue? [Y/n] n 
Abort.
1 Like

I tried to unhold packages, but I have the same error

1 Like

Did you attempt to change the driver you are using, delete the offending packages and run an update after? It may be because the driver is in use that it is unable to update the nvidia packages. While it may normally occur, if they changed the version of the language used to write the driver, this could require a complete reinstall of the driver, not allowing it to be upgraded.

1 Like

Done... Now the problem is solved! I reinstalled the driver. thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.