LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   elementary OS (https://www.linuxquestions.org/questions/elementary-os-112/)
-   -   SOLVED:App is blocked from updating, but App centre keeps trying to update it... (https://www.linuxquestions.org/questions/elementary-os-112/solved-app-is-blocked-from-updating-but-app-centre-keeps-trying-to-update-it-4175700191/)

joden1 09-04-2021 01:21 PM

SOLVED:App is blocked from updating, but App centre keeps trying to update it...
 
It is Wine-Staging I am trying to hold to a particular version (6.14) and I have run the command to stop it updating, however App Centre keeps adding it to the list of updates (under System) so I cannot stop it updating, which will break a couple of other apps I need to run.

There are now 179 updates, but I cannot do them as I cannot get rid of the Wine-Staging update.

I tried running the updates, just to see if it would skip the Wine update and just install the others, but that didn't work and i had to go and downgrade Wine again....rinse and repeat, Wine then starts to appear in the system updates again.

How can I stop App Centre including wine in it's scan?

rokytnji 09-04-2021 04:47 PM

I'd disable the wine repo temporarily to finish my update.

Then investigate the why it won't update later on.

joden1 09-04-2021 05:01 PM

Yes that's what I am saying - I HAVE blocked the repo from updating, but EOS keeps re-adding it to the update list

enigma9o7 09-04-2021 08:05 PM

How have you tried to block it from updating?

The easiest way is to comment the external wine repo in /etc/apt/sources.list or if its not listed there, delete (or move away) the file in /etc/apt/sources.list.d then
Code:

sudo apt update && sudo apt upgrade
edit: doh, EOS is elementary OS

joden1 09-04-2021 08:32 PM

Quote:

Originally Posted by enigma9o7 (Post 6281675)
How have you tried to block it from updating?

The easiest way is to comment the external wine repo in /etc/apt/sources.list or if its not listed there, delete (or move away) the file in /etc/apt/sources.list.d then
Code:

sudo apt update && sudo apt upgrade
Whatever EOS is, if it is acting inbetween the time you remove the repo and run update/upgrade, then figure out how to kill that process.

Yep, again as I wrote in the OP, that is already done :) this is the command I used sudo apt-mark hold winehq-staging. I did not try the one you posted there so worht a try :)

ondoho 09-05-2021 12:00 AM

Quote:

Originally Posted by joden1 (Post 6281628)
Yes that's what I am saying - I HAVE blocked the repo from updating, but EOS keeps re-adding it to the update list

Please show us:
Code:

cat /etc/apt/sources.list{,.d/*}

joden1 09-05-2021 12:39 PM

Quote:

Originally Posted by ondoho (Post 6281710)
Please show us:
Code:

cat /etc/apt/sources.list{,.d/*}

There were a few, but I am guessing the salient one is this?

deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
# deb-src https://dl.winehq.org/wine-builds/ubuntu/ focal main
deb http://ppa.launchpad.net/elementary-os/stable/ubuntu focal main
deb-src http://ppa.launchpad.net/elementary-os/stable/ubuntu focal main

enigma9o7 09-05-2021 01:48 PM

As I suggested earlier, comment out the wine one, the first line there, put a # before it then update.
Code:

sudo apt edit-sources
sudo apt update
sudo apt upgrade


joden1 09-05-2021 03:35 PM

Quote:

Originally Posted by enigma9o7 (Post 6281879)
As I suggested earlier, comment out the wine one, the first line there, put a # before it then update.
Code:

sudo apt edit-sources
sudo apt update
sudo apt upgrade



EDIT: figured it out from your post, thanks!


All times are GMT -5. The time now is 11:45 PM.