0

求助,系统崩溃后飞牛如何重置系统?

发表于:2024-10-4 00:26:21 问答互助 275
本帖最后由 Feng 于 2024-10-4 00:35 编辑

获得root权限后执行
apt update -y && apt full-upgrade -y


  1. apt update -y && apt full-upgrade -y
  2. Hit:1 https://**rors.tuna.tsinghua.edu.cn/debian bookworm InRelease
  3. Get:2 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease [55.4 kB]
  4. Get:3 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease [59.0 kB]
  5. Get:4 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease [48.0 kB]
  6. Hit:5 https://**rors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bookworm InRelease
  7. Get:6 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
  8. Get:7 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. Get:10 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security/main amd64 Packages [185 kB]
  14. Get:11 https://**rors.tuna.tsinghua.edu.cn/debian-security bookworm-security/main Translation-en [112 kB]
  15. Get:12 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main amd64 Packages [247 kB]
  16. Get:13 https://**rors.tuna.tsinghua.edu.cn/debian bookworm-backports/main Translation-en [207 kB]
  17. Hit:14 https://pkg.ltec.ch/public focal InRelease                     
  18. Fetched 1,069 kB in 2s (565 kB/s)
  19. Reading package lists... Done
  20. Building dependency tree... Done
  21. Reading state information... Done
  22. All packages are up to date.
  23. Reading package lists... Done
  24. Building dependency tree... Done
  25. Reading state information... Done
  26. Calculating upgrade... Done
  27. The following NEW packages will be installed:
  28.   init-system-**s ncurses-base usr-is-merged
  29. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  30. Need to get 317 kB of archives.
  31. After this operation, 545 kB of additional disk space will be used.
  32. Get:1 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 usr-is-merged all 37~deb12u1 [5,616 B]
  33. Get:2 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 init-system-**s all 1.65.2 [49.8 kB]
  34. Get:3 https://**rors.tuna.tsinghua.edu.cn/debian bookworm/main amd64 ncurses-base all 6.4-4 [261 kB]
  35. Fetched 317 kB in 0s (1,243 kB/s)     
  36. E: Cannot get debconf version. Is debconf installed?
  37. debconf: apt-extracttemplates failed: No such file or directory
  38. Selecting previously unselected package usr-is-merged.
  39. (Reading database ... 922 files and directories currently installed.)
  40. Preparing to unpack .../usr-is-merged_37~deb12u1_all.deb ...

  41. Progress: [  0%] [.....................................................................................................................................]
  42. Unpacking usr-is-merged (37~deb12u1) ..................................................................................................................]

  43. Setting up usr-is-merged (37~deb12u1) .................................................................................................................]

  44. removed '/lib64' [##############################.......................................................................................................]
  45. /var/lib/dpkg/info/usr-is-merged.postinst: 16: rmdir: not found
  46. dpkg: error processing package usr-is-merged (--configure):
  47. installed usr-is-merged package post-installation script subprocess returned error exit status 127
  48. Errors were encountered while processing:
  49. usr-is-merged
  50. E: Sub-process /usr/bin/dpkg returned an error code (1)
复制代码



  1. apt install -y curl wget sudo
  2. -bash: /usr/bin/apt: cannot execute: required file not found
复制代码

ssh断开后就再无法连接

  1. 连接断开
  2. 连接主机...
  3. 连接主机成功
  4. Linux F-NAS 6.6.38-trim #34 SMP PREEMPT_DYNAMIC Wed Sep 25 16:22:17 CST 2024 x86_64
  5. Last login: Fri Oct  4 00:09:24 2024 from 123.4.198.53
  6. /bin/bash: No such file or directory

  7. 连接断开
  8. 连接主机...
  9. 连接主机成功
  10. Linux F-NAS 6.6.38-trim #34 SMP PREEMPT_DYNAMIC Wed Sep 25 16:22:17 CST 2024 x86_64
  11. Last login: Fri Oct  4 00:10:56 2024 from 123.4.198.53
  12. /bin/bash: No such file or directory
复制代码



进入web关闭ssh再次打不开SSH服务,提示系统内部错误。



请问有什么办法不丢失数据的情况下修复系统?



收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

发表回复

Feng

TA还没有介绍自己~

2

主题

3

回帖

9

积分

江湖小虾

积分
9
话题