Estou tentando instalar algumas bibliotecas gráficas com o seguinte comando:
sudo apt install jpegoptim optipng
No entanto, ele não funciona com o seguinte:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jpegoptim optipng
0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/208 kB of archives.
After this operation, 625 kB of additional disk space will be used.
dpkg: warning: 'find' 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)
Eu então tento instalar o find
com o seguinte comando:
sudo apt-get install findutils
Mas não é possível instalar, pois já está instalado:
Reading package lists... Done
Building dependency tree
Reading state information... Done
findutils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.
Percebi que meu arquivo /etc/environment
estava vazio e adicionei o seguinte a ele:
PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Infelizmente isso também não funcionou. Isso ainda resulta em:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jpegoptim optipng
0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/208 kB of archives.
After this operation, 625 kB of additional disk space will be used.
dpkg: warning: 'find' 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)
Eu também tentei colocar o seguinte no arquivo .bashrc
:
export PATH=$PATH:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
mas ainda reclama que o PATH está incorreto.