Software - Support > Updates

APT - packages have been kept back

<< < (2/3) > >>

Jerry:
@Şerban - thank you for your help, but OP, DO NOT follow his instructions until you have responded to my post. We DO NOT use sudo apt upgrade.

Şerban S.:

--- Quote from: mgqk15 on August 02, 2022, 04:20:32 AM ---[...]when I try an APT UPGRADE I get the following message that packages have been kept back.[...]
--- End quote ---

Hi! :)
The APT message, is weird, to say the least!
If there were any errors at all, then where are they (is it...) listed in the APT output?

On the other hand...

Looking at the package list, I can recognize the updates that I received in the last 4 days or so and all worked flawlessly.
On the other hand...
As far as I can see, most packages are LibreOffice related.
The problem with LibreOffice, is that it crushes (freezez) the system. I wanted to use it after the clean install from LL 5.8 to LL 6.0 since I use it daily, but it froze my desktop, several times, even after upgradeing to the latest office version. Far more, this "latest & greatest" was worse than the LibreOffice (7.4.2?) that is packed in the ISO.
So the only choice I had, was to revert to the old version I used for years: 6.0.3.2.
I answered a previous post, exactly related to this issue: computer frozen by LibreOffice.
What confuses me though, is why on Earth, APT holds the gstreamer packages, without any error message?!  :(
The only logical answer is that all held packages, are tied (mandatory dependencies) to the LibreOffice installation.

My solution:

1. Uninstall LibreOffice. Works easy from Synaptic. Select full uninstall;
2. Download LibreOffice 6.0.3.2; Unpack it;
3. Read the "README_en-US" file (in the readmes directory). Pay attention to the current path, when entering the sudo dpkg -i *.deb command into the terminal. I usually provide the full path to the files (say: /video/LibreOffice/LibreOffice_6.0.3.2_Linux_x86-64_deb/debs/*.deb). So, pay attention to the fully qualified path before hitting "Enter" in the terminal window.
4. Run sudo apt update, then sudo apt upgrade.

From where I look, this will work. At least, it worked for me.
Give it a try and if this makes the nightmare go away, remember to add the "SOLVED" label to the first post in the thread.

Below, there is a sample code to what I do to install another LibreOffice than the default one:


--- Code: ---cd /video/X-99-Kit-Linux/LibreOffice-Versiuni-Info/LibreOffice_6.0.3.2_Linux_x86-64_deb/DEBS/
sudo dpkg -i *.deb

--- End code ---

You need to modify the above code with the appropriate data, that points to the current directory where you unpacked the packages.

Best wishes! :)

[Later edit...]
I saw Jerry's message.
I seldom use (that is: exceptionally only) sudo apt update, then sudo apt upgrade.
Probably the only case is, when I install a new Linux Lite (meaning, from a bootable stick) and that rarely happens, except when the previous version is the end of line, such as LL 5.8 which is followed by a major version (6.0).
For each update/upgrade, I rely on the Lite specific module (Update or Upgrade). So when I wrote "update worked flawlessly", the update was performed by the Linux Lite appropriate module. In this case, Update; namely: /usr/bin/lite-updates.
As a showcase...
Yesterday, there were some 100 package updates. All went like a breeze and some 60%, were LibreOffice and gstreamer related, so maybe if you do what I suggested, all wil work well.

A last second thought, to follow Jerry's guidelines:
After installing LibreOffice 6.0.3.2, instead of using the sequence sudo apt update, then sudo apt upgrade, since you are in CLI, use:


--- Code: ---sudo /usr/bin/lite-updates
--- End code ---

This will pop up the Lite Updates graphic module. If there is any update, it will show the list; else, you'll get the message "Your system is up to date".

Good luck! :)

Jerry:
Please use the provided Install Updates on the Menu. We don't use sudo apt upgrade in our code. Let me know if the same issue occurs.

mgqk15:
Hi Jerry,

I'm using the SUDO APT command from a terminal, please see copy of update I've just run this morning. As you can see it has 1 to upgrade and 28 not to upgrade.

Thanks for your help.

Moz

***********************************
* Copy from terminal window
***********************************

 moz  ~  sudo apt update
[sudo] password for moz:
Hit:1 https://ppa.launchpadcontent.net/appimagelauncher-team/stable/ubuntu jammy InRelease
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                                                                       
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                                                                     
Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                               
Hit:5 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                           
Hit:6 http://archive.canonical.com/ubuntu jammy InRelease                                                                           
Hit:7 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease   
Hit:8 http://repo.linuxliteos.com/linuxlite fluorite InRelease
Hit:9 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.
 moz  ~  sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  fonts-opensymbol libegl-mesa0 libgbm1 libgl1-mesa-dri libglapi-mesa libglx-mesa0 libreoffice-avmedia-backend-gstreamer
  libreoffice-base-core libreoffice-common libreoffice-core libreoffice-gnome libreoffice-gtk3 libreoffice-pdfimport
  libreoffice-style-colibre libreoffice-style-elementary libreoffice-style-galaxy libreoffice-style-tango libreoffice-style-yaru
  libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libxatracker2 mesa-va-drivers
  mesa-vdpau-drivers uno-libs-private ure
The following packages will be upgraded:
  google-chrome-stable
1 to upgrade, 0 to newly install, 0 to remove and 28 not to upgrade.
Need to get 89.6 MB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://dl.google.com/linux/chrome/deb stable/main amd64 google-chrome-stable amd64 104.0.5112.79-1 [89.6 MB]
Fetched 89.6 MB in 16s (5,565 kB/s)                                                                                                 
(Reading database ... 368637 files and directories currently installed.)
Preparing to unpack .../google-chrome-stable_104.0.5112.79-1_amd64.deb ...
Unpacking google-chrome-stable (104.0.5112.79-1) over (103.0.5060.134-1) ...
Setting up google-chrome-stable (104.0.5112.79-1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for menu (2.1.47ubuntu4) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
 moz  ~  


Jerry:
Are you using Menu, Favorites, Install Updates application?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version