[SOLVED] Update manager error

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

[SOLVED] Update manager error

Post by FinixFighter »

Hi! I'm having a problem with the Update Manager. I have set up updates on Automatic updates (Update Manager->Edit->Preferences->Auto-Upgrade->Apply updates automatically) but it doesn't work. There is a red cross on the update manager icon (in my panel) and if I click it it says:"Could not refresh the list of updates". Then, if I click the Refresh button, it refreshes normally and says that my system is up to date (or it lists the updates available, if there are). I would like the system to install all updates automatically, how can I solve the problem?
I have Linux Mint 19 Tara 64-bit (Kernel Linux 4.15.0-36-generic x86_64, MATE 1.20.1)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
stallmansupport.org
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager error

Post by xenopeek »

Can you share the output of this command run from the terminal (you can select and copy text from the terminal through its Edit menu):
inxi -Sr
Image
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

xenopeek wrote: Sun Oct 21, 2018 4:24 pm Can you share the output of this command run from the terminal (you can select and copy text from the terminal through its Edit menu):
inxi -Sr
This is what I get:

Code: Select all

System:    Host: luca-Lenovo-G500 Kernel: 4.15.0-36-generic x86_64 bits: 64
           Desktop: MATE 1.20.1  Distro: Linux Mint 19 Tara
Repos:     Active apt sources in file: /etc/apt/sources.list.d/additional-repositories.list
           deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://mirrors.evowise.com/linuxmint/packages tara main upstream import backport
           deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
           deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
           deb http://archive.canonical.com/ubuntu/ bionic partner
           Active apt sources in file: /etc/apt/sources.list.d/spotify.list
           deb http://repository.spotify.com stable non-free
stallmansupport.org
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager error

Post by xenopeek »

Nothing stands out as suspect in that; all those repositories work. I don't have an immediate other idea what the cause could be.
Image
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Update manager error

Post by catweazel »

FinixFighter wrote: Sun Oct 21, 2018 3:49 pm Hi! I'm having a problem with the Update Manager.
Please post the output of this terminal command:

Code: Select all

apt update
Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
Last edited by xenopeek on Mon Oct 22, 2018 2:59 am, edited 1 time in total.
Reason: removed redundant sudo
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Neil Darlow

Re: Update manager error

Post by Neil Darlow »

Are you using wireless? If so, in the settings of your preferred wireless connection(s) under Identity, are Connect automatically and Make available to other users checked? By default they should be but unavailability of a wireless connection could be a cause.
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

catweazel wrote: Mon Oct 22, 2018 2:48 am
FinixFighter wrote: Sun Oct 21, 2018 3:49 pm Hi! I'm having a problem with the Update Manager.
Please post the output of this terminal command:

Code: Select all

apt update
Enclose the results between [ⅽode] and [/ⅽode] code markers by selecting </> from the mini toolbar above the textbox where you type your reply.
That's what I get:

Code: Select all

Ign:1 http://mirrors.evowise.com/linuxmint/packages tara InRelease
Hit:2 http://mirrors.evowise.com/linuxmint/packages tara Release               
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease              
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease                        
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                
Hit:8 http://repository.spotify.com stable InRelease                           
Hit:9 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease                
Hit:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease       
Reading package lists... Done                      
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
For example, now I have one software update but it remains there, it doesn't install automatically. If I want to download and install it, I need to click "Install Updates".

@Neil Darlow Yes, those voices are checked
stallmansupport.org
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager error

Post by xenopeek »

Automatic upgrades run daily through /etc/cron.daily/mintupdates and use the mintupdate-cli program which runs independent of the Update Manager GUI window. That is, errors during the automatic upgrade are not shown in Update Manager GUI window and errors in Update Manager GUI window or status icon bear no relation to what automatic upgrade did or didn't do.

The automatic upgrades will run when it's been 24 hours since it was last run (I think) so time of day can vary. It writes a log in /var/log/mintupdate.log.

If you have errors in Update Manager GUI window or status icon, that should be related to automatic refresh—not automatic upgrade. Default config for auto-refresh is 10 minutes after login and then every 2 hours after that. The logs of the Update Manager GUI window are in the directory /tmp/mintUpdate.
Image
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

I attached a picture where you can see what I got today.
And this the error that I have in /tmp/mintUpdate:

Code: Select all

10.23@14:50 ++ MintUpdate is in tray mode, performing auto-refresh 
10.23@14:50 ++ Starting refresh (including refreshing the APT cache) 
10.23@14:50 ++ Auto-refresh will happen in 0 minutes, 1 hours and 0 days 
10.23@14:50 ++ Error in checkAPT.py, could not refresh the list of updates 
As always, if I click "Refresh" button then it refreshes and shows me the updates. But it doesn't install it automatically. The oldest is there since October 21 (more than 24 hours).
That's what I get when I refresh manually:

Code: Select all

10.23@15:33 ++ Starting refresh (including refreshing the APT cache) 
10.23@15:33 ++ Found 4 software updates 
10.23@15:33 ++ Refresh finished 
Last edited by FinixFighter on Tue Oct 23, 2018 9:55 am, edited 1 time in total.
stallmansupport.org
gm10

Re: Update manager error

Post by gm10 »

Maybe it wasn't clear to you from xeno's post but the relevant log to look at is

Code: Select all

/var/log/mintupdate.log
As he said, what happens in the GUI tool really has nothing to do with what happens during auto-updates, it's a separate process.
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

gm10 wrote: Tue Oct 23, 2018 9:51 am Maybe it wasn't clear to you from xeno's post but the relevant log to look at is

Code: Select all

/var/log/mintupdate.log
As he said, what happens in the GUI tool really has nothing to do with what happens during auto-updates, it's a separate process.
That's what I have in it

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintUpdate/mintupdate-cli.py", line 37, in <module>
    check.refresh_cache()
  File "/usr/lib/linuxmint/mintUpdate/checkAPT.py", line 92, in refresh_cache
    self.cache.update()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 545, in update
    raise FetchFailedException()
apt.cache.FetchFailedException
stallmansupport.org
User avatar
xenopeek
Level 25
Level 25
Posts: 29597
Joined: Wed Jul 06, 2011 3:58 am

Re: Update manager error

Post by xenopeek »

Suggest to change to a different mirror for Linux Mint repository in Software Sources, as both auto-refresh and auto-upgrade logs show problems with it.
Image
gm10

Re: Update manager error

Post by gm10 »

Solution: Mint menu > Software Sources and change to a different mirror for Main (tara), the evowise one has apparently gone bad, seen other people have issues with it, too.

PS: too slow ;)
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

I changed it to a german one, if everything works the Update Manager will auto download and auto install updates without doing anything, right? :roll: Fingers crossed XD
stallmansupport.org
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

Daily update: auto-refresh works but updates are not automatically installed, they remain there... :(
stallmansupport.org
gm10

Re: Update manager error

Post by gm10 »

The auto-updater may not have run yet. Again, screenshots of the GUI application don't help, it's a different software. Post the full output of

Code: Select all

ll /var/log/mintupdate.log;cat /var/log/mintupdate.log
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

Output of the first instruction:

Code: Select all

-rw-r--r-- 1 root root 2222 Oct 24 00:07 /var/log/mintupdate.log
Output of the second instruction:

Code: Select all

Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  assaultcube-data extremetuxracer-data gsfonts-x11 libboost-random1.65.1
  libboost-regex1.65.1 libgsasl7 libmikmod3 libntlm0 libqt5sql5
  libqt5sql5-sqlite libsdl-mixer1.2 libsfml-audio2.4 libsfml-graphics2.4
  libsfml-system2.4 libsfml-window2.4 libtinyxml2.6.2v5 libwine
  libwine-development pokerth-data
Use 'apt autoremove' to remove them.
Suggested packages:
  fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools groff
Recommended packages:
  update-manager-core
The following NEW packages will be installed:
  linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic
  linux-image-4.15.0-38-generic linux-modules-4.15.0-38-generic
  linux-modules-extra-4.15.0-38-generic
The following packages will be upgraded:
  friendly-recovery linux-generic linux-headers-generic linux-image-generic
  linux-libc-dev man-db mintsystem
7 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 67,9 MB of archives.
After this operation, 336 MB of additional disk space will be used.
Get:1 http://ftp-stud.hs-esslingen.de/pub/Mirrors/packages.linuxmint.com tara/main amd64 mintsystem all 8.4.0 [18,4 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 man-db amd64 2.8.3-2ubuntu0.1 [1.019 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 friendly-recovery all 0.2.38ubuntu1 [8.912 B]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-modules-4.15.0-38-generic amd64 4.15.0-38.41 [13,0 MB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-image-4.15.0-38-generic amd64 4.15.0-38.41 [7.898 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-modules-extra-4.15.0-38-generic amd64 4.15.0-38.41 [32,7 MB]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-generic amd64 4.15.0.38.40 [1.868 B]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-image-generic amd64 4.15.0.38.40 [2.380 B]
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-headers-4.15.0-38 all 4.15.0-38.41 [11,0 MB]
stallmansupport.org
gm10

Re: Update manager error

Post by gm10 »

If that's the full log, is it possible you shut down the computer while the update was taking place? You can check your recent shutdown times using this command:

Code: Select all

last -n5
User avatar
FinixFighter
Level 3
Level 3
Posts: 162
Joined: Mon Oct 01, 2018 12:54 pm
Location: Pescara, Italy

Re: Update manager error

Post by FinixFighter »

gm10 wrote: Wed Oct 24, 2018 5:37 am If that's the full log, is it possible you shut down the computer while the update was taking place? You can check your recent shutdown times using this command:

Code: Select all

last -n5
That's what I get:

Code: Select all

luca     tty7         :0               Wed Oct 24 08:59    gone - no logout
reboot   system boot  4.15.0-36-generi Wed Oct 24 08:56   still running
reboot   system boot  4.15.0-36-generi Wed Oct 24 08:54 - 08:56  (00:02)
luca     tty7         :0               Tue Oct 23 19:49 - 00:07  (04:18)
reboot   system boot  4.15.0-36-generi Tue Oct 23 19:48 - 00:08  (04:19)

wtmp begins Sat Oct 20 10:04:11 2018
Usually when I turn on the pc it remains it reamains turned on for several hours (4 or even more). Does the autopatic update take place only one time per day?
stallmansupport.org
gm10

Re: Update manager error

Post by gm10 »

Yes, and as you can see from the times, you happened to shut it down last night exactly when it was updating. But otherwise it was running fine, so your updates should get installed tomorrow if nothing else interferes.
Locked

Return to “Software & Applications”