只是为了好玩,我想我会在运行 Raspbian 的 Raspberry Pi 上使用这个命令:
sudo rm -f /bin/rm
Run Code Online (Sandbox Code Playgroud)
我以为我可以重新安装coreutils
:我错了!
apt-get install --reinstall coreutils
给出了一个错误dpkg
,说它无法删除包。从源代码编译不起作用,因为Makefile
使用rm
.
我怎样才能找回工作rm
?
将 GNOME 更新到 3.20.2 后,我的触摸板出现了一些问题,因此在混乱中我错误地删除了 /usr/bin/touch,之后我变得更加愚蠢并删除了 /bin/touch。
现在在此之后我似乎无法安装任何程序。这是安装程序时产生的错误..
user1@pqrx:~$ sudo apt-get install gir1.2-gtop-2.0
[sudo] password for user1:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gir1.2-gtop-2.0
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/54.6 kB of archives.
After this operation, 104 kB of additional disk space will be used.
Selecting previously unselected package gir1.2-gtop-2.0:amd64.
(Reading database ... 351267 …
Run Code Online (Sandbox Code Playgroud)