apt-get upgrade and install not working

Asked by kevin_h

hello, on my ubuntu gutsy server, I cannot get apt-get to upgrade or install spamassassin, previousely it would get 404 for updates from us.archive.ubuntu. Here is the latest from upgrade or the spamassassin attempt:

in searching the archives, I cannot quite figure out the next step to resolve. thanks.

(web1)/home/kevin> sudo apt-get upgrade
[sudo] password for kevin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  linux-image-server linux-server openssh-client openssh-server ssl-cert
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

 (web1)/home/kevin> sudo apt-get install spamassassin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package spamassassin 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 spamassassin has no installation candidate
 (web1)/home/kevin>

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
kevin_h
Solved:
Last query:
Last reply:
Revision history for this message
unixchaos (jza873) said :
#1

referred by another package means its not standalone program any more. i believe tha if you just install apache spamassassin comes with it. sudo apt-get install apache apache2.2

Revision history for this message
Jeff Rasmussen (jeffrasmussen) said :
#2

From the command line, try running 'sudo apt-get dist-upgrade' or better yet, use aptitude. Both methods will allow for a more intrusive upgrade and will allow you to change significant libraries like libc6.

Ubuntu however primarily tests upgrades from the GUI tool 'update-manager'. Make sure you try this method first. I believe that Ubuntu may include special scripts to create a smoother upgrade.

Revision history for this message
kevin_h (kevin-leh) said :
#3

thanks for the quick response. That didn't appear to work, nor did a few variations on just trying to update apache.

Jeff response:

 (web1)/home/kevin> sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-image-2.6.22-15-server linux-ubuntu-modules-2.6.22-15-server openssh-blacklist
  openssl-blacklist
The following packages will be upgraded:
  linux-image-server linux-server openssh-client openssh-server ssl-cert
5 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.2MB of archives.
After unpacking 90.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  linux-image-2.6.22-15-server linux-ubuntu-modules-2.6.22-15-server openssl-blacklist
  openssh-blacklist openssh-server openssh-client linux-server linux-image-server ssl-cert
Install these packages without verification [y/N]? y
Err http://security.ubuntu.com gutsy-security/main linux-image-2.6.22-15-server 2.6.22-15.58
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main linux-ubuntu-modules-2.6.22-15-server 2.6.22-15.39
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main openssl-blacklist 0.3.3+0.4-0ubuntu0.7.10.2
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main openssh-blacklist 0.1-1ubuntu0.7.10.1
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main openssh-server 1:4.6p1-5ubuntu0.5
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main openssh-client 1:4.6p1-5ubuntu0.5
  404 Not Found
Err http://security.ubuntu.com gutsy-security/restricted linux-server 2.6.22.15.22
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main linux-image-server 2.6.22.15.22
  404 Not Found
Err http://security.ubuntu.com gutsy-security/main ssl-cert 1.0.14-0ubuntu0.7.10.1
  404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-source-2.6.22/linux-image-2.6.22-15-server_2.6.22-15.58_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-ubuntu-modules-2.6.22/linux-ubuntu-modules-2.6.22-15-server_2.6.22-15.39_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl-blacklist/openssl-blacklist_0.3.3+0.4-0ubuntu0.7.10.2_all.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh-blacklist/openssh-blacklist_0.1-1ubuntu0.7.10.1_all.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-server_4.6p1-5ubuntu0.5_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssh/openssh-client_4.6p1-5ubuntu0.5_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/l/linux-meta/linux-server_2.6.22.15.22_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-image-server_2.6.22.15.22_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/ssl-cert/ssl-cert_1.0.14-0ubuntu0.7.10.1_all.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 (web1)/home/kevin>
=========
Unixchaos response:

 (web1)/home/kevin> sudo apt-get upgrade apache apache2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  linux-image-server linux-server openssh-client openssh-server ssl-cert
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 (web1)/home/kevin> sudo apt-get install apache apache2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache 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 apache has no installation candidate
 (web1)/home/kevin> sudo apt-get upgrade apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  linux-image-server linux-server openssh-client openssh-server ssl-cert
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 (web1)/home/kevin>

Revision history for this message
unixchaos (jza873) said :
#4

ok i just tried to install spamassassin on my computer and it worked through sudo apt-get install spamassassin... however i am running 9.04 so what im thinking is that the package has been removed from gusty's repository. now you have a few options you can go to apache.org and download it anc compile it. if you are not comfortable with that you can try to hunt down a deb file (not so fun). if you have a gnome you can run update-manager and press update and upgrade your computer to the newest distro. also you can manually do it if you dont have a graphical. so
sudo nano /etc/apt/sources.list

disable all 3rd party repo's (use #)
change all instances of gusty to jaunty
then sudo apt-get dist-upgrade

****NOW THE FUN WAY WITHOUT UPGRADING****

also ther is more you can go to www.spamassassin.org
download the tar.gz file
convert it to a RPM using rpmbuild
        sudo rpmbuild -tb Mail-SpamAssassin-3.2.5.tar.gz
then convert it to a deb using alien
        sudo apt-get install alien
        sudo alien -d Mail-SpamAssassin-3.2.5.rpm
        sudo dpkg -i Mail-SpamAssassin-3.2.5.deb

Revision history for this message
kevin_h (kevin-leh) said :
#5

ok, thanks. Yea, I may compile from source for spamassassin. No alien for me either. I may also search for a different spam filter other than spamass too. Ultimately it looks like an upgrade is the way to go in the long run.

(web1)/home/kevin> sudo apt-get install alien
[sudo] password for kevin:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package alien
 (web1)/home/kevin> man alien
No manual entry for alien
 (web1)/home/kevin>

Revision history for this message
unixchaos (jza873) said :
#6

that sucks yea i would just do a dist-upgrade it takes long but its deff worth it in the long run