首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >apt升级失败:未满足的依赖关系

apt升级失败:未满足的依赖关系
EN

Ask Ubuntu用户
提问于 2020-12-08 15:55:53
回答 1查看 2.9K关注 0票数 0

我有一个Ubuntu20.04服务器。最近我试图更新它。我遇到了这个错误

代码语言:javascript
复制
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).

我照它说的做了,但没有帮助

代码语言:javascript
复制
$ 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).

我尝试了我找到的解决办法,但没有结果。

代码语言:javascript
复制
$ 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

代码语言:javascript
复制
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

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-12-28 17:10:40

原来我的sudo apt reinstall systemd-timesyncd太大了。现在修好了。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1298523

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档