Whenever I do a sudo apt update && sudo apt full-upgrade
I get the following error:
However, when I try to remove
android-tools-adbd
I get a very similar error:Anyone know anything about how to fix this?
Whenever I do a sudo apt update && sudo apt full-upgrade
I get the following error:
android-tools-adbd
I get a very similar error:Does "apt-get -f install" do something?
Does "ps -aux | grep adb" show something?
apt -f install
ignores the package and ps -aux | grep adb
shows abd not running.
after funning adb start-server
, this shows up in ps -aux | grep adb
:thomas 5012 0.0 0.0 112380 2672 pts/2 Sl 14:48 0:00 adb -P 5037 fork-server server
apt -f install
still ignores android-tools-adbd and error while upgrading still occurs.
sudo apt-get remove --purge -y android-tools-adbd
followed bysudo apt-get autoclean
Same error as before. I think this might be a problem with systemd (or whatever) being unable to stop a service that doesn't exist (android-tools-adbd.service). How would one go about creating a dummy service to be stopped to keep apt happy?
That's the problem. android-tools-adbd.service doesn't exist anywhere on the drive.
Solved! Created a dummy service called android-tools-adbd.service ( http://patrakov.blogspot.com.au/2011/01/writing-systemd-service-files.html )
Contents:
[Unit]
Description=adbd dummy service
[Service]
ExecStart=/bin/sleep 10000000
[Install]
WantedBy=multi-user.target
copied to /etc/systemd/system/ and ran systemctl start android-tools-adbd.service to start it and was successfully able to remove android-tools-adbd then deleted the service.
Everything's back to normal.