1
MuyuQ 2016-07-28 16:31:28 +08:00
绝对路径也无效么。
|
2
asxaqz OP @MuyuQ 是指 /sbin/init 和 /sbin/shutdown 的绝对路径吗?我进 livecd 挂载上看了, init 和 shutdown 确实消失了。
|
3
lslqtz 2016-07-28 16:43:55 +08:00
删除了整个 /usr/bin 的表示 :(
希望你能搞定 |
4
Mithrandir 2016-07-28 16:49:55 +08:00
直接重装,这次就当时教训了,安装软件的时候一定要好好看看安装程序都有那些提示, linux 不像 windows ,不会在安装过程中给你输出一些没用的信息
|
5
MuyuQ 2016-07-28 17:02:53 +08:00
看日志吧。 丢失的不一定只有 init 和 shutdown 。 http://h2appy.blog.51cto.com/609721/781281/
|
7
asxaqz OP @Mithrandir 多谢,顺便一问,我直接 apt-get dist-update 到最新版会有效吗
|
9
xss 2016-07-28 22:34:01 +08:00 1
应该是安装依赖的时候有冲突把 initrd 给卸载了,你查查你的发行版本里面 initrd 叫什么,强制重新安装一遍看看。
|
10
congeec 2016-07-28 22:43:24 +08:00
.................我猜是装了 systemd, 卸了 init.d 什么的
我在 Gentoo 上干过这种事而 |
11
asxaqz OP @congeec my init.d seems intact, it contains a bunch of files, but i wonder how u manage to get over it ? thanks. (im replying on livecd which lacks a chinese input method, sorry about it
|
12
congeec 2016-07-28 23:06:00 +08:00
@asxaqz I'm fine with English. What I did was to download a net-bootable image, chroot into the original broken system, rebuiding and installing missing packages, and most importantly, ran Gentoo's depency-checking tool: rev-rebuild.
|
13
congeec 2016-07-28 23:08:25 +08:00 1
@asxaqz If I am right, you can use dpkg on Debian derivied systems to determine which package does /sbin/init belong to.
You can pull a full-iso, make a directory comparison and copy the missing files. |
14
asxaqz OP @congeec thanks, i will try it, but there are really tons of them contributing to /sbin/init
|
15
asxaqz OP @xss i suppose u mean initramfs? just check my dpkg.log, and find i did upgrade some package about initramfs, i will try to reinstall them, thanks
|
16
congeec 2016-07-28 23:29:18 +08:00
@asxaqz My suggestion is that you'd better figure out what does your missing /sbin/init belong to. sysvinit or systemd? If you can figure it out, repairing your inti system (sysvinit or systemd) is the best way.
|
17
asxaqz OP @congeec oh i see, i just used dpkg -S to check the the /sbin/init of the original livecd, it turns out to belong to upstart, and i happened to do an upgrade to it last night. i try to reinstall it but it seems that i have to uninstall some core-package to resolve the dependency. now im not sure if i should do it
|
18
congeec 2016-07-28 23:51:54 +08:00
@asxaqz Backup your data. Try to reinstall these core-package, remember to make a record of the packages you will uninstall.
BACKUP YOUR DATA |
19
msg7086 2016-07-28 23:55:00 +08:00
人家没中文输入法不代表读不懂中文啊……为啥全程英语回复了。
|
22
okudayukiko0 2016-07-29 03:23:37 +08:00 via Android
重新安装 systemd
|