سلام. موقع نصب یا بروزرسانی هر برنامه ای این خطا رو میده:
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
amd64-microcode intel-microcode iucode-tool linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic
linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic linux-modules-extra-4.15.0-23-generic
linux-tools-4.15.0-23 linux-tools-4.15.0-23-generic
The following packages will be upgraded:
flashplugin-installer gtk-communitheme linux-generic linux-headers-generic linux-image-generic linux-libc-dev
linux-tools-common linux-tools-virtual netplan.io nplan
10 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/69.7 MB of archives.
After this operation, 344 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
dpkg: warning: 'start-stop-daemon' 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)
اوبونتو ۱۸.۰۴ دارم
محتوای فایل /etc/environment :
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/morteza/Program/sd$
ANDROID_HOME="/home/morteza/Program/sdk"
جستجو هم کردم ولی به نتیجه ای نرسیدم.
ویرایش:
در جستجو ها گفتن دو خط زیر در فایل /etc/sudoers رو هم چک کنم:
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
که به نظرم مشکلی نداره