Unable to install some apts (printer driver) as terminal could not get lock
Asked
Active
Viewed 3,165 times
1 Answers
0
Use the command line to kill any running process. For that use the following commands
sudo killall apt apt-get
If that doesn't work follow the below commands.
ps aux | grep -i apt
This will return id of the processes running apt
sudo kill process_id
Replace the process_id with the number you got in the output of previous command.
Check if the process was killed by running the ‘ps aux | grep -i apt’ command. If it is still running, force kill it with SIGKILL signal:
sudo kill -9 process_id

Arjun K Shibu
- 951