I'm unable to fix my debian8 distro. I ran into this problem after trying to install wine. (sudo apt-get install wine)
Now after I try to install anything I get this error message:
Code: Select all
/var/cache/apt/archives $ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 215-17+deb8u2) but 215-17+deb8u7 is to be installed
Recommends: libpam-systemd but it is not going to be installed
systemd-sysv : Depends: systemd (= 215-17+deb8u7) but 215-17+deb8u2 is to be installed
vim : Depends: vim-common (= 2:7.4.488-7+deb8u3) but it is not going to be installed
Depends: vim-runtime (= 2:7.4.488-7+deb8u3) but it is not going to be installed
Depends: libgpm2 (>= 1.20.4) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So, I tried fixing this problem using sudo apt-get -f install
Code: Select all
/var/cache/apt/archives $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
systemd
Suggested packages:
systemd-ui
Recommended packages:
libpam-systemd
The following packages will be upgraded:
systemd
1 upgraded, 0 newly installed, 0 to remove and 74 not upgraded.
Need to get 0 B/2574 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 15446 files and directories currently installed.)
Preparing to unpack .../systemd_215-17+deb8u7_i386.deb ...
Unpacking systemd (215-17+deb8u7) over (215-17+deb8u2) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_215-17+deb8u7_i386.deb (--unpack):
error creating directory `./etc/systemd/user': Not a directory
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.
Processing triggers for dbus (1.8.22-0+deb8u1) ...
Errors were encountered while processing:
/var/cache/apt/archives/systemd_215-17+deb8u7_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I also tried sudo apt-get update --fix-missing (everything seems to be working here I just put this for completeness sake
Code: Select all
/var/cache/apt/archives $ sudo apt-get update --fix-missing
Hit http://ppa.launchpad.net vivid InRelease
Ign http://ftp.us.debian.org jessie InRelease
Hit http://ppa.launchpad.net trusty InRelease
Hit http://ftp.us.debian.org jessie Release.gpg
Hit http://ftp.us.debian.org jessie Release
Hit http://ppa.launchpad.net vivid/main i386 Packages
Hit http://ppa.launchpad.net vivid/main Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ftp.us.debian.org jessie/main i386 Packages
Hit http://ftp.us.debian.org jessie/main Translation-en
Reading package lists... Done
Is there a way to fix the systemd problem? Could I use a live cd to restore the original settings before trying to install wine?