[SOLVED] upgrade with mintupdate fails in LMDE2

Archived topics about LMDE 1
Forum rules
LMDE 2 support ends on 1-1-2019
Locked
mintor
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2016 2:19 pm

[SOLVED] upgrade with mintupdate fails in LMDE2

Post by mintor » Mon Mar 14, 2016 2:40 pm

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 mintor on Mon Mar 21, 2016 11:39 am, edited 1 time in total.

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug » Mon Mar 14, 2016 3:00 pm

Have you tried switching the mirror as advised by the UpdateManager?
Image
If it ain't broke, fix it until it is.

mintor
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2016 2:19 pm

Re: upgrade with mintupdate fails in LMDE2

Post by mintor » Mon Mar 14, 2016 3:05 pm

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.

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug » Mon Mar 14, 2016 3:23 pm

Is it the topic you have seen: viewtopic.php?f=47&t=213574&start=20#p1115761
Image
If it ain't broke, fix it until it is.

mintor
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2016 2:19 pm

Re: upgrade with mintupdate fails in LMDE2

Post by mintor » Mon Mar 14, 2016 3:32 pm

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

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug » Mon Mar 14, 2016 4:03 pm

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
Image
If it ain't broke, fix it until it is.

mintor
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2016 2:19 pm

Re: upgrade with mintupdate fails in LMDE2

Post by mintor » Tue Mar 15, 2016 11:21 am

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
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2016 2:19 pm

[SOLVED] Re: upgrade with mintupdate fails in LMDE2

Post by mintor » Fri Mar 18, 2016 2:29 pm

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

User avatar
killer de bug
Level 14
Level 14
Posts: 5403
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: upgrade with mintupdate fails in LMDE2

Post by killer de bug » Fri Mar 18, 2016 4:05 pm

:shock:

I would never have guessed such an issue. :?
Image
If it ain't broke, fix it until it is.

Locked

Return to “LMDE 1 Archive”