本帖最后由 Feng 于 2024-10-4 00:35 编辑
获得root权限后执行
apt update -y && apt full-upgrade -y
- apt update -y && apt full-upgrade -y
- Hit:1 https://**rors.tuna.tsinghua.edu.cn/debian bookworm InRelease
- Get:2 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease [55.4 kB]
- Get:3 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease [59.0 kB]
- Get:4 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease [48.0 kB]
- Hit:5 https://**rors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
- Get:6 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
- Get:7 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]
- Get:8 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-10-03-0804.49-F-2024-09-29-0804.09.pdiff [25.8 kB]
- Get:8 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages T-2024-10-03-0804.49-F-2024-09-29-0804.09.pdiff [25.8 kB]
- Get:9 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-10-03-0204.36-F-2024-09-29-1404.03.pdiff [2,649 B]
- Get:9 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en T-2024-10-03-0204.36-F-2024-09-29-1404.03.pdiff [2,649 B]
- Get:10 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security/main amd64 Packages [185 kB]
- Get:11 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security/main Translation-en [112 kB]
- Get:12 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages [247 kB]
- Get:13 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en [207 kB]
- Hit:14 https://pkg.ltec.ch/public focal InRelease
- Fetched 1,069 kB in 2s (565 kB/s)
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- All packages are up to date.
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- Calculating upgrade... Done
- The following NEW packages will be installed:
- init-system-**s ncurses-base usr-is-merged
- 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
- Need to get 317 kB of archives.
- After this operation, 545 kB of additional disk space will be used.
- Get:1 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 usr-is-merged all 37~deb12u1 [5,616 B]
- Get:2 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 init-system-**s all 1.65.2 [49.8 kB]
- Get:3 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 ncurses-base all 6.4-4 [261 kB]
- Fetched 317 kB in 0s (1,243 kB/s)
- E: Cannot get debconf version. Is debconf installed?
- debconf: apt-extracttemplates failed: No such file or directory
- Selecting previously unselected package usr-is-merged.
- (Reading database ... 922 files and directories currently installed.)
- Preparing to unpack .../usr-is-merged_37~deb12u1_all.deb ...
- Progress: [ 0%] [.....................................................................................................................................]
- Unpacking usr-is-merged (37~deb12u1) ..................................................................................................................]
- Setting up usr-is-merged (37~deb12u1) .................................................................................................................]
- removed '/lib64' [##############################.......................................................................................................]
- /var/lib/dpkg/info/usr-is-merged.postinst: 16: rmdir: not found
- dpkg: error processing package usr-is-merged (--configure):
- installed usr-is-merged package post-installation script subprocess returned error exit status 127
- Errors were encountered while processing:
- usr-is-merged
- E: Sub-process /usr/bin/dpkg returned an error code (1)
复制代码
- apt install -y curl wget sudo
- -bash: /usr/bin/apt: cannot execute: required file not found
复制代码
ssh断开后就再无法连接
- 连接断开
- 连接主机...
- 连接主机成功
- Linux F-NAS 6.6.38-trim #34 SMP PREEMPT_DYNAMIC Wed Sep 25 16:22:17 CST 2024 x86_64
- Last login: Fri Oct 4 00:09:24 2024 from 123.4.198.53
- /bin/bash: No such file or directory
- 连接断开
- 连接主机...
- 连接主机成功
- Linux F-NAS 6.6.38-trim #34 SMP PREEMPT_DYNAMIC Wed Sep 25 16:22:17 CST 2024 x86_64
- Last login: Fri Oct 4 00:10:56 2024 from 123.4.198.53
- /bin/bash: No such file or directory
复制代码
进入web关闭ssh再次打不开SSH服务,提示系统内部错误。
请问有什么办法不丢失数据的情况下修复系统?
|