种一棵树最好的时间是10年前,其次就是现在,加油!
--by蜡笔小柯南
一、问题分析
我们使用Linux的Ubuntu系统时,一些基础的命令,如:ll
、ls
、ls -l
,发现都不能使用,提示如下报错信息:
Command 'ls' not found, but can be installed with: apt install coreutils
很可能因为核心工具包出现了问题,从错误的提示中,我们发现,让我们安装 apt install coreutils
二、问题解决
之前这些命令可以正常使用,突然就用不了了,我们可以使用如下命令,重新安装核心工具包
sudo apt install --reinstall coreutils
等待安装完成后,搞定!