由于我错误地遵循了一些教程,当我尝试 sudo apt-get upgrade 时收到此错误。请帮忙。
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
echo which tar echo $PATH 给出以下输出:
paras@paras:/$ sudo echo $PATH
在 /usr/local/sbin 中:在 /usr/local/bin 中:在 /usr/sbin 中:在 /usr/bin 中:在 /sbin 中:在 /usr/games 中