0
root@iZwz95eolw1pwdiiexxceyZ:~# apt upgrade
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu noble InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu noble-backports InRelease
Hit:4 http://mirrors.cloud.aliyuncs.com/ubuntu noble-security InRelease
Hit:5 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu noble InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
31 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@iZwz95eolw1pwdiiexxceyZ:/usr/lib/systemd# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.5 is installed
 libpam-systemd : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.5 is installed
 systemd : Depends: libsystemd-shared (= 255.4-1ubuntu8.5) but 255.4-1ubuntu8.6 is installed
           Depends: libsystemd0 (= 255.4-1ubuntu8.5) but 255.4-1ubuntu8.6 is installed
 systemd-resolved : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.5 is installed
 systemd-sysv : Depends: systemd (= 255.4-1ubuntu8.6) but 255.4-1ubuntu8.5 is installed
 udev : Breaks: systemd (< 255.4-1ubuntu8.6) but 255.4-1ubuntu8.5 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

root@iZwz95eolw1pwdiiexxceyZ:~# apt install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  systemd
Suggested packages:
  systemd-container systemd-homed systemd-userdbd systemd-boot libqrencode4 libtss2-rc0
The following packages will be upgraded:
  systemd
1 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3,471 kB of archives.
After this operation, 8,192 B disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 89827 files and directories currently installed.)
Preparing to unpack .../systemd_255.4-1ubuntu8.6_amd64.deb ...
Unpacking systemd (255.4-1ubuntu8.6) over (255.4-1ubuntu8.5) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_255.4-1ubuntu8.6_amd64.deb (--unpack):
 unable to make backup link of './usr/lib/systemd/systemd-shutdown' before installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/systemd_255.4-1ubuntu8.6_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

0 Answers0