提示
代码: 全选
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libpam-systemd : Depends: systemd (= 229-4ubuntu21.2) but 229-4ubuntu21 is installed
systemd : Depends: libsystemd0 (= 229-4ubuntu21) but 229-4ubuntu21.2 is installed
一直使用镜像自带的apt源,突然出现这个问题了,不知道怎么修复。。。。
求帮忙!!
我尝试执行了
代码: 全选
sudo apt-get -f install
代码: 全选
dpkg: warning: files list file for package 'libmosquitto-dev:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjpeg8:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjsoncpp1:amd64' missing; assuming package has no files currently installed
(Reading database ... 282898 files and directories currently installed.)
Preparing to unpack .../systemd_229-4ubuntu21.2_amd64.deb ...
Unpacking systemd (229-4ubuntu21.2) over (229-4ubuntu21) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_229-4ubuntu21.2_amd64.deb (--unpack):
trying to overwrite '/lib/systemd/systemd', which is also in package systemd-sysv 229-4ubuntu21
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
/var/cache/apt/archives/systemd_229-4ubuntu21.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)