Preventing specific app from updating (19) [SOLVED]

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
JLC17
Level 1
Level 1
Posts: 37
Joined: Tue Feb 07, 2017 11:51 am

Preventing specific app from updating (19) [SOLVED]

Post by JLC17 » Mon Jul 16, 2018 9:35 am

Upgraded to Mint 19 last week. Plain sailing apart from the newest version of Pan newsreader, which is broken.

reinstalling the version from 18.3 sorted the problem. I went into Synaptic and locked the version there. However, whenever the Webmin software manager runs, it keeps flagging the newer version for installation.

Is there a way to stop this happening ?
Last edited by JLC17 on Tue Jul 17, 2018 6:49 am, edited 1 time in total.

ajgringo619
Level 4
Level 4
Posts: 398
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: Preventing specific app from updating (19)

Post by ajgringo619 » Mon Jul 16, 2018 11:11 am

Code: Select all

sudo apt hold package_name
[Mint 19 XFCE, AMD FX-8350 Eight-Core w/16 GB RAM, 4.15.0-36-generic, GeForce GTX 960 w/Nvidia 410.66]
Image

User avatar
Pjotr
Level 20
Level 20
Posts: 10901
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Preventing specific app from updating (19)

Post by Pjotr » Mon Jul 16, 2018 11:20 am

ajgringo619 wrote:
Mon Jul 16, 2018 11:11 am

Code: Select all

sudo apt hold package_name
I suggest this slightly different command:

Code: Select all

sudo apt-mark hold package_name
:)

In the case of Pan:

Code: Select all

sudo apt-mark hold pan
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
richyrich
Level 19
Level 19
Posts: 9007
Joined: Mon May 04, 2009 8:31 pm

Re: Preventing specific app from updating (19)

Post by richyrich » Mon Jul 16, 2018 1:32 pm

If the Webmin software is bypassing Synaptic and the Update Manager, you will most likely need to delve into the Webmin documentation to find a way to disable it.

gm10
Level 11
Level 11
Posts: 3529
Joined: Thu Jun 21, 2018 5:11 pm

Re: Preventing specific app from updating (19)

Post by gm10 » Mon Jul 16, 2018 1:41 pm

Pjotr wrote:
Mon Jul 16, 2018 11:20 am
ajgringo619 wrote:
Mon Jul 16, 2018 11:11 am

Code: Select all

sudo apt hold package_name
I suggest this slightly different command:

Code: Select all

sudo apt-mark hold package_name
:)
Oh, is this a game of equivalent commands? I suggest

Code: Select all

apt hold package_name
Shortest, I win. ;)

No but seriously, apt is a wrapper, it calls apt-mark internally, anyway. Same with sudo. So all of these are the same thing at the end of the day.

User avatar
Pjotr
Level 20
Level 20
Posts: 10901
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Preventing specific app from updating (19)

Post by Pjotr » Mon Jul 16, 2018 5:00 pm

gm10 wrote:
Mon Jul 16, 2018 1:41 pm
apt is a wrapper, it calls apt-mark internally, anyway. Same with sudo. So all of these are the same thing at the end of the day.
Well, I've learned something new. :)
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

JLC17
Level 1
Level 1
Posts: 37
Joined: Tue Feb 07, 2017 11:51 am

Re: Preventing specific app from updating (19)

Post by JLC17 » Tue Jul 17, 2018 6:48 am

Thanks for all the replies guys.

just to note the apt-mark command did not seem to work.

However, in UpdateManager under "Preferences" there is a tab "Blacklist". Following a lucky guess, I added "pan" as an item, and now Webmin isn't picking up the update.

In case anyone who works on UpdateManager reads this (it might pop up in a google for "UpdateManager", it would make it easier if rather than having to freetype the package you want to blacklist, you could select it from a list of installed packages ?

Either way, this is solved,

gm10
Level 11
Level 11
Posts: 3529
Joined: Thu Jun 21, 2018 5:11 pm

Re: Preventing specific app from updating (19)

Post by gm10 » Tue Jul 17, 2018 6:50 am

JLC17 wrote:
Tue Jul 17, 2018 6:48 am
In case anyone who works on UpdateManager reads this (it might pop up in a google for "UpdateManager", it would make it easier if rather than having to freetype the package you want to blacklist, you could select it from a list of installed packages ?
Assuming we are talking about Linux Mint's Update Manager now (so far you were talking about a Webmin software): Once there is an actual update for a package, you can right click that update in the list and blacklist it from there.

JLC17
Level 1
Level 1
Posts: 37
Joined: Tue Feb 07, 2017 11:51 am

Re: Preventing specific app from updating (19)

Post by JLC17 » Tue Jul 17, 2018 6:59 am

gm10 wrote:
Tue Jul 17, 2018 6:50 am
JLC17 wrote:
Tue Jul 17, 2018 6:48 am
In case anyone who works on UpdateManager reads this (it might pop up in a google for "UpdateManager", it would make it easier if rather than having to freetype the package you want to blacklist, you could select it from a list of installed packages ?
Assuming we are talking about Linux Mint's Update Manager now (so far you were talking about a Webmin software): Once there is an actual update for a package, you can right click that update in the list and blacklist it from there.
My original post was how to stop Webmin flagging up pan for update, since the version available is newer than the version I have installed (the new one has a nasty bug). There's nothing obvious in Webmin, and I had already locked the version in Synaptic, but Webmin was still showing "1 update available".

After loading UpdateManager, and experimenting, it seems "blacklisting" the package does whatever is needed for Webmin to think it's now up to date.

However UpdateManager blacklist has a ""/-" button, and you need to type a package name in (or I did) to add it.

gm10
Level 11
Level 11
Posts: 3529
Joined: Thu Jun 21, 2018 5:11 pm

Re: Preventing specific app from updating (19)

Post by gm10 » Tue Jul 17, 2018 7:22 am

JLC17 wrote:
Tue Jul 17, 2018 6:59 am
After loading UpdateManager, and experimenting, it seems "blacklisting" the package does whatever is needed for Webmin to think it's now up to date.

However UpdateManager blacklist has a ""/-" button, and you need to type a package name in (or I did) to add it.
It's a bit weird that Webmin would ignore an apt hold but heed a Mint-specific setting, but at long as it works it's all good. Anyway, as I said, you can right-click blacklist as well, just open up the Mint Update Manager whenever Webmin is offering you an update to a package you do not want to update, that way you do not have to know the package name.

Post Reply

Return to “Software & Applications”