我有一个Ubuntu20.04服务器。最近我试图更新它。我遇到了这个错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).我照它说的做了,但没有帮助
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
1 not fully installed or removed.
Need to get 0 B/28.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).我尝试了我找到的解决办法,但没有结果。
$ sudo dpkg --configure -a
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).重启也于事无补。如果有人能帮上忙,或者知道是什么造成了这个问题,我将非常感激。这台服务器对我来说有点重要。DNS,文件共享,电影,所有那些有趣的东西都会从里面跑出来。提前谢谢。
下面是包含内容的最新/var/log/apt/term.log
Log started: 2020-11-25 20:32:55
dpkg: systemd-timesyncd: dependency problems, but removing anyway as you requested:
systemd depends on systemd-timesyncd | time-daemon; however:
Package systemd-timesyncd is to be removed.
Package time-daemon is not installed.
Package systemd-timesyncd which provides time-daemon is to be removed.
systemd depends on systemd-timesyncd | time-daemon; however:
Package systemd-timesyncd is to be removed.
Package time-daemon is not installed.
Package systemd-timesyncd which provides time-daemon is to be removed.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 197964 files and directories currently installed.)
Removing systemd-timesyncd (245.4-4ubuntu3.3) ...日志不包含结束。下一个日志17天后开始。还有IDK为什么要删除systemd-timesyncd。
更新:我尝试重新安装systemd-timesyncd并得到了这个错误systemd-timesyncd is already the newest version (245.4-4ubuntu3.3).,它表示无论我是apt install还是apt --fix-broken install。
发布于 2020-12-28 17:10:40
原来我的sudo apt reinstall systemd-timesyncd太大了。现在修好了。
https://askubuntu.com/questions/1298523
复制相似问题