Kan*_*rka 1 dpkg kali-linux touch
将 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 files and directories currently installed.)
Preparing to unpack .../gir1.2-gtop-2.0_2.34.0-1_amd64.deb ...
Unpacking gir1.2-gtop-2.0:amd64 (2.34.0-1) ...
Setting up gir1.2-gtop-2.0:amd64 (2.34.0-1) ...
sh: 1: touch: not found
update-kali-menu: error: Can't open /var/lock/kali-menu: No such file or directory
E: Problem executing scripts DPkg::Post-Invoke '[ ! -x /usr/share/kali-menu/update-kali-menu ] || /usr/share/kali-menu/update-kali-menu wait_dpkg'
E: Sub-process returned an error code
Run Code Online (Sandbox Code Playgroud)
任何帮助都感激不尽。
touch
包含在GNU 核心实用程序中。由于您删除了该程序,您可以使用此命令尝试重新安装它:
sudo apt-get install --reinstall coreutils
Run Code Online (Sandbox Code Playgroud)
仅使用此命令在全新安装的 Kali Linux 2016.1 上重新安装已删除/usr/bin/touch
和/bin/touch
程序。
对于其他发行版,特别是 Mint(在 17.3 Cinnamon 上测试),sudo apt-get update
可能需要先运行。
归档时间: |
|
查看次数: |
985 次 |
最近记录: |