/usr/bin/env 现在删除了 sh 文件(脚本),程序无法打开/工作

/usr/bin/env 现在删除了 sh 文件(脚本),程序无法打开/工作

/usr/bin/env文件已删除并且/bin/env也已取消链接。我尝试了各种技术来恢复,但没有效果。我尝试重新安装 coreUtils 但出现此错误。

akash@akash:~$ sudo apt-get install --reinstall coreutils
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    **Reinstallation of coreutils is not possible, it cannot be downloaded.**
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我尝试手动删除,但出现此错误

akash@akash:~$ sudo apt-get remove coreutils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 colord : Depends: libsane (>= 1.0.24) but it is not going to be installed
 fontconfig : Depends: fontconfig-config but it is not going to be installed
 libfontconfig1 : Depends: fontconfig-config (= 2.11.94-0ubuntu1) but it is not going to be installed
 libgtk2.0-0 : Depends: libcairo2 (>= 1.6.4-6.1) but it is not going to be installed
               Depends: libpangocairo-1.0-0 (>= 1.28.3) but it is not going to be installed
               Depends: libpangoft2-1.0-0 (>= 1.28.3) but it is not going to be installed
               Recommends: libgtk2.0-bin but it is not going to be installed
 libqt5feedback5 : Depends: libqt5multimedia5 (>= 5.0.2) but it is not going to be installed
 libubuntugestures5 : Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                               libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
 qml-module-qtquick-layouts : Depends: libqt5quick5 (>= 5.2.0) but it is not going to be installed or
                                       libqt5quick5-gles (>= 5.2.0) but it is not going to be installed
 qml-module-qtquick-window2 : Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                                       libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
 qml-module-ubuntu-layouts : Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                                      libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

因此,某些程序和 sh(脚本)无法运行。

akash@akash:~$ scala
    bash: /usr/local/bin/scala: /usr/bin/env: bad interpreter: No such file or directory   

答案1

尝试直接下载 coreutils 包ubuntu 包搜索。供 Xenial 使用这个网站

对于 Debian,您必须使用等效的包搜索页面。

相关内容