bash:ls 命令不起作用

bash:ls 命令不起作用

我升级到 Ubuntu 最新版本(我认为是 22.04),更新过程中出现了一些错误。

dpkg: error processing package usrmerge (--configure):
 installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 usrmerge

为了修复它,我运行了 apt install usrmerge。它对几个文件发出了抱怨,因为它们已经存在了。(它发生在几个文件上,我重命名了目标并继续重新运行它)。当我最后一次运行时,它给出了如下错误。

FATAL ERROR: Both /lib64/ld-linux-x86-64.so.2 and /usr/lib64/ld-linux-x86-64.so.2 exist.

从那时起,它不再识别任何命令,包括 ls 命令。

我是 Ubuntu 新手,通过阅读一些论坛,我尝试更新路径,但仍然不起作用。任何帮助都非常感谢。我被卡住了,如果我重新启动,ubuntu 可能无法工作,并且我害怕会丢失所有文件。

root@VirtualBox:/usr/bin# export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
root@VirtualBox:/usr/bin# ls
bash: /usr/bin/ls: No such file or directory
root@VirtualBox:/usr/bin# nano .bash_profile
bash: /usr/bin/nano: No such file or directory

命令 Apt install Usrmerge 输出:

root@VirtualBox:/home/raj# apt install usrmerge
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
usrmerge is already the newest version (25ubuntu2).
The following packages were automatically installed and are no longer required:
  bluefish-plugins dvd+rw-tools g++-9 g++-9-multilib gcc-10-base gcc-10-base:i386 gir1.2-gnomebluetooth-1.0
  gir1.2-handy-0.0 gir1.2-tracker-2.0 gir1.2-zpj-0.0 growisofs hddtemp lib32stdc++-9-dev libamtk-5-0
  libamtk-5-common libaom0 libasync-mergepoint-perl libbasicusageenvironment1 libboost-date-time1.71.0
  libboost-iostreams1.71.0 libboost-locale1.71.0 libboost-thread1.71.0 libbrlapi0.7 libcamel-1.2-62
  libcbor0.6 libcdio18 libcodec2-0.9 libdc1394-22 libdns-export1109 libdvdread7 libebml4v5
  libedataserver-1.2-24 libedataserverui-1.2-2 libextutils-pkgconfig-perl libfluidsynth2 libfuture-perl
  libfwupdplugin1 libgit2-28 libgroupsock8 libgupnp-1.2-0 libhandy-0.0-0 libhogweed5 libigdgmm11
  libilmbase24 libio-async-loop-epoll-perl libio-async-perl libjson-c4 libjuh-java libjurt-java
  liblibreoffice-java liblinux-epoll-perl liblivemedia77 libllvm12 libmatroska6v5 libmbedcrypto3
  libmbedtls12 libmbedx509-0 libmetrics-any-perl libmms0 libmozjs-68-0 libmusicbrainz5-2
  libmusicbrainz5cc2v5 libmysqlclient21 libnettle7 libntfs-3g883 libodbc1 libofa0 libopenexr24
  liborcus-0.15-0 libpgm-5.2-0 libphonenumber7 libplacebo7 libpoppler97 libprotobuf17 libpython2-stdlib
  libpython3.8 libpython3.8-minimal libpython3.8-stdlib libqpdf26 libqt5concurrent5 libquvi-0.9-0.9.3
  libquvi-scripts-0.9 libraw19 libreadonly-perl libref-util-perl libref-util-xs-perl
  libreoffice-style-tango libridl-java librpm8 librpmbuild8 librpmio8 librpmsign8 libsane libsereal-perl
  libsrt1 libstdc++-9-dev libstruct-dumb-perl libtepl-4-0 libtest-fatal-perl libtest-metrics-any-perl
  libtest-refcount-perl libtotem-plparser-videosite libtracker-control-2.0-0 libtracker-miner-2.0-0
  libtracker-sparql-2.0-0 libtype-tiny-perl libtype-tiny-xs-perl libunoloader-java libusageenvironment3
  libusrsctp1 libvpx6 libwebp6 libx264-155 libx265-179 libx32stdc++-9-dev libxml-writer-perl libxmlb1
  lua-bitop lua-expat lua-json lua-lpeg lua-socket lz4 mysql-common odbcinst odbcinst1debian2 python2
  python2-minimal python3-entrypoints python3-requests-unixsocket python3-simplejson python3-sip python3.8
  python3.8-minimal ruby2.7 unoconv ure-java
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up usrmerge (25ubuntu2) ...
Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.

FATAL ERROR:
Both /lib64/ld-linux-x86-64.so.2 and /usr/lib64/ld-linux-x86-64.so.2 exist.

You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.

dpkg: error processing package usrmerge (--configure):
 installed usrmerge package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 usrmerge
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@VirtualBox:/home/raj# apt install usrmerge
bash: /usr/bin/apt: No such file or directory

相关内容