[SOLVED] upgrade with mintupdate fails in LMDE2

Archived topics about LMDE 1 and LMDE 2
Locked
mintor

[SOLVED] upgrade with mintupdate fails in LMDE2

Post by mintor »

There seems to be a bug in mintupdate. It can't handle the package upgrades correctly.
Each time it refreshes the package list, it ends up reporting a corruption of apt cache:
Image

When I perform upgrade from the terminal (apt upgrade), it works fine. Why then
mintupdate complains? While refreshing the packages in mintupdate, I can see some
errors related to translation packages, but no clue what's wrong otherwise:
Image

I've seen a similar thread on Mint main forum, where over-restrictive privileges for
/etc/apt/ where causing problems, but the privileges are fine on my machine.
Does anyone else has encounter similar problem on LMDE2? Or has an idea how to
investigate it further?
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.
killer de bug

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug »

Have you tried switching the mirror as advised by the UpdateManager?
mintor

Re: upgrade with mintupdate fails in LMDE2

Post by mintor »

Yes. That doesn't help because the mirrors are fine and upgrade works with apt.
It must be something else happening here, something mintupdate specific... To me it
looks like it might be overreacting to the translation package errors, but I'm just guessing.
killer de bug

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug »

Is it the topic you have seen: viewtopic.php?f=47&t=213574&start=20#p1115761
mintor

Re: upgrade with mintupdate fails in LMDE2

Post by mintor »

Yes, that's the one. It's not my case though. I have o+r set on the files and o+rx on the directories.

Code: Select all

$ ls -la /etc/apt/
total 48
drwxr-xr-x   6 root root  4096 Feb 17 15:36 .
drwxr-xr-x 189 root root 12288 Mar 14 16:39 ..
drwxr-xr-x   2 root root  4096 Mar 14 16:38 apt.conf.d
-rw-r--r--   1 root root  2144 Jul 24  2011 apt-file.conf
-rw-r--r--   1 root root   105 Feb 17 15:53 listchanges.conf
-rw-r--r--   1 root root   153 Feb 25 17:49 preferences
drwxr-xr-x   2 root root  4096 Feb 17 19:01 preferences.d
drwxr-xr-x   2 root root  4096 Feb 11 14:54 sources.list.d
-rw-r--r--   1 root root  1204 Feb 15 13:11 trusted.gpg
drwxr-xr-x   2 root root  4096 Mar 14 16:39 trusted.gpg.d
killer de bug

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug »

I'm lost.
Since it works with apt and not with MintUpdate, it's a MintUpdate problem. Probably due to some access restrictions. :?

You have also checked this files/folders?

Code: Select all

ls -la ~/.config/linuxmint
mintor

Re: upgrade with mintupdate fails in LMDE2

Post by mintor »

I don't think this is the problem. The privileges seems to be correct:

Code: Select all

$ ls -la ~/.config/linuxmint
total 12
drwxr-xr-x  2 user user 4096 May 28  2015 .
drwxr-xr-x 54 user user 4096 Jan 20 18:16 ..
-rw-r--r--  1 user user  965 Mar 14 18:22 mintUpdate.conf
-rw-r--r--  1 user user    0 Feb 11 14:55 mintupdate.ignored
mintor

[SOLVED] Re: upgrade with mintupdate fails in LMDE2

Post by mintor »

I dived into the mintupdate code and found the following test in check_policy method:

Code: Select all

if line.startswith("700") and line.endswith("Packages") and "/upstream" in line:
    mint_layer_found = True
Because I selectively install packages (mainly new version of python libraries) from testing or unstable,
I have been using the /etc/apt/preferences like this:

Code: Select all

Package: *
Pin: release a=betsy
Pin-Priority: 990

Package: *
Pin: release a=stable
Pin-Priority: 500

Package: *
Pin: release o=Debian
Pin-Priority: -1
As you see, by changing the priority I made mintupdate missing the "mint layer" and reporting error.
Setting the priority to 700 fixes the problem. Following modification of the test condition also works:

Code: Select all

if line.endswith("Packages") and "/upstream" in line:
Perhaps there is even a better test one can write, the mint developers should decide. Clearly, something
like a different packages priority should not break the updates. For reference, the lines being looked for
by mintupdate code look like this:

Code: Select all

700 http://www.mirrorservice.org/sites/packages.linuxmint.com/packages/ betsy/upstream amd64 Packages
    release v=2,o=linuxmint,a=betsy,n=betsy,l=linuxmint,c=upstream
    origin www.mirrorservice.org
killer de bug

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug »

:shock:

I would never have guessed such an issue. :?
Locked

Return to “LMDE Archive”