I'm trying to fix apt-get
from an old toy machine so I can install packages again.
I get this after sudo apt-get install -f
:
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
avahi-daemon : Depends: upstart-job
Depends: upstart (>= 0.6.7-4) but it is not installed
cron : Depends: upstart-job
dbus : Depends: upstart-job
Depends: upstart (>= 0.6.3-6) but it is not installed
hostname : PreDepends: upstart-job
ifupdown : Depends: upstart-job
initscripts : Depends: upstart but it is not installed
module-init-tools : Depends: upstart-job
mysql-server-5.1 : Depends: upstart-job
Depends: upstart (>= 0.6.7-3) but it is not installed
netbase : Depends: upstart-job
openssh-server : Depends: upstart-job
plymouth : Depends: upstart-job
Depends: mountall (>= 2.0) but it is not installed
Recommends: plymouth-theme-ubuntu-text but it is not installed or
plymouth-theme
procps : Depends: upstart-job
rsyslog : Depends: upstart-job
screen : Depends: upstart-job
udev : Depends: upstart-job
ufw : Depends: upstart-job
ureadahead : Depends: libnih1 (>= 1.0.0) but it is not installed
Depends: upstart (>= 0.6.0) but it is not installed
util-linux : Depends: upstart-job
vsftpd : Depends: upstart-job
x11-common : Depends: upstart-job
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
But when I try to install upstart-job
I get:
$ sudo apt-get install upstart-job
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'upstart' instead of 'upstart-job'
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
plymouth : Depends: mountall (>= 2.0) but it is not going to be installed
Recommends: plymouth-theme-ubuntu-text but it is not going to be installed or
plymouth-theme
upstart : Depends: libnih-dbus1 (>= 1.0.0) but it is not going to be installed
Depends: libnih1 (>= 1.0.0) but it is not going to be installed
Depends: mountall but it is not going to be installed
ureadahead : Depends: libnih1 (>= 1.0.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Update works:
$ sudo apt-get update
Hit:1 http://mirrors.linode.com/ubuntu impish InRelease
Get:2 http://mirrors.linode.com/ubuntu impish-updates InRelease [110 kB]
Get:3 http://mirrors.linode.com/ubuntu impish-backports InRelease [101 kB]
Get:4 http://security.ubuntu.com/ubuntu impish-security InRelease [110 kB]
Fetched 321 kB in 1s (498 kB/s)
Reading package lists... Done
Since this is a toy machine, I'm open to aggressive approaches/ideas.
Thanks!