Page 1 of 1

Unable to install 'apt-notifier'

Posted: Fri Oct 14, 2022 10:00 am
by BardicDruid
I just got a new HDD before the old one died, did a clean install, everything was working great until I uninstalled 'plasma-discover' and 'plasma-discover-common' and tried to install 'apt-notifier' in MXPI, I got this message back:

Code: Select all

Package apt-notifier is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apt-notifier' has no installation candidate
I've searched the forum and all the other posts about 'apt-notifier', it's already installed, I can't get that far. But I did find something in one of the posts and tried it:

Code: Select all

dalec@mx:~
$ apt policy mx-packageinstaller
mx-packageinstaller:
  Installed: 22.8.02
  Candidate: 22.8.02
  Version table:
 *** 22.8.02 100
        100 /var/lib/dpkg/status
dalec@mx:~
$ which mx-packageinstaller
/usr/bin/mx-packageinstaller
That said it was installed but I couldn't find it anywhere in the menu, so I tried it in terminal and got:

Code: Select all

dalec@mx:~
$ apt-notifier
Command 'apt-notifier' not found, but can be installed with:
apt install apt-notifier
Please ask your administrator.
root@mx:/home/dalec# apt-notifier
Command 'apt-notifier' not found, but can be installed with:
apt install apt-notifier
root@mx:/home/dalec#  apt install apt-notifier
Reading package lists... Done                                                                              
Building dependency tree... Done
Reading state information... Done
Package apt-notifier is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apt-notifier' has no installation candidate
And that's where I ran out of ideas and came here.

Re: Unable to install 'apt-notifier'

Posted: Fri Oct 14, 2022 10:17 am
by Huckleberry Finn

Code: Select all

huck@Huckleberry:~
$ apt list *notifier*
Listing... Done
...
apt-notifier/mx,now 20.11.01mx19+1 all [installed]
...

Code: Select all

sudo apt update ; sudo apt install apt-notifier -y

Re: Unable to install 'apt-notifier'  [Solved]

Posted: Fri Oct 14, 2022 10:35 am
by fehlix
BardicDruid wrote: Fri Oct 14, 2022 10:00 am

Code: Select all

Package apt-notifier is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apt-notifier' has no installation candidate

Code: Select all

dalec@mx:~
$ apt policy mx-packageinstaller
mx-packageinstaller:
  Installed: 22.8.02
  Candidate: 22.8.02
  Version table:
 *** 22.8.02 100
        100 /var/lib/dpkg/status
dalec@mx:~

Code: Select all

apt install apt-notifier
Reading package lists... Done                                                                              
Building dependency tree... Done
Reading state information... Done
Package apt-notifier is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'apt-notifier' has no installation candidate
In both cases it shows, you either have not re-freshed apt' packages sources list
or you manually disabled the MX repos.
As mentioned, a simple reftesh like this

Code: Select all

sudo apt update

would make the packages available to install.
If not, do post QSI "Quick System Info

Re: Unable to install 'apt-notifier'

Posted: Fri Oct 14, 2022 10:59 am
by BardicDruid
Thank you, I'm not a spring chicken any more and every now and then I can't remember the simple stuff, but the apt update was what was needed, again thank you.