root@thinkcode:~# sudo aptitude install squid squid-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
squid-common
The following NEW packages will be installed:
squid
0 packages upgraded, 2 newly installed, 0 to remove and 84 not upgraded.
Need to get 1,116kB of archives. After unpacking 2,548kB will be used.
The following packages have unmet dependencies:
squid-common: Depends: squid-langpack which is a virtual package.
Unable to resolve dependencies! Giving up...
The following packages are BROKEN:
squid-common
The following NEW packages will be installed:
squid
0 packages upgraded, 2 newly installed, 0 to remove and 84 not upgraded.
Need to get 1,116kB of archives. After unpacking 2,548kB will be used.
aptitude failed to find a solution to these dependencies. You can solve them yourself by hand or type 'n' to quit.
The following packages have unmet dependencies:
squid-common: Depends: squid-langpack which is a virtual package.
Resolve these dependencies by hand? [N/+/-/_/:/?] N
Abort.

These are my repos in (/etc/apt/sources.list):

# deb cdrom:[Ubuntu-Server 9.10 _Karmic Koala_ - Release i386 (20091027.2)]/ karmic main restricted
#deb cdrom:[Ubuntu-Server 9.10 _Karmic Koala_ - Release i386 (20091027.2)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
#>deb http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
#>deb-src http://us.archive.ubuntu.com/ubuntu/ karmic main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
#>deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
#>deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ karmic-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic universe
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse

1 Answer
1

Ubuntu 9.10 is long since out of support, and the repositories have been discontinued; thus the 404s you're seeing.

You'll need to change your repositories to http://old-releases.ubuntu.com/ubuntu/ in your /etc/apt/sources.list - once that's done, I'd recommend an upgrade to 10.04 (run do-release-upgrade) to get on a supported version. See here for details.

Thanks Shane. I did change the repos, and I updated with the error I now get.
–
ThinkCodeJan 3 '12 at 22:45

1

Did you do an apt-get update after making the changes to the sources file?
–
Shane Madden♦Jan 3 '12 at 22:54

All the security related domains (security.ubuntu.com karmic-security/restricted Packages) are giving a 404. May I have the old-URL for security.ubuntu.com?
–
ThinkCodeJan 3 '12 at 23:00

apt-get update did the trick, thank you so much!
–
ThinkCodeJan 3 '12 at 23:04

1

@ThinkCode Same deal for security and the other (universe, multiverse) repositories that you still have pointed to the main archive server - all are on the same old-releases server. deb http://old-releases.ubuntu.com/ubuntu/ karmic universe, deb http://old-releases.ubuntu.com/ubuntu/ karmic multiverse, deb http://old-releases.ubuntu.com/ubuntu/ karmic-security main restricted. And again, I'd really recommend an upgrade - those archives haven't had a security update in over half a year.
–
Shane Madden♦Jan 3 '12 at 23:05