I use ps aux | grep -i apt
to find the process and get:
antonio 19070 0.0 0.0 14424 1096 pts/0 S+ 07:41 0:00 grep --color=auto -i apt
Commands such as sudo kill -9 14424
or any other number (it has changed over the last 12 hours) all give me a return of "no such process."
Best Answer
Read the results carefully, you are detecting your
grep apt
command, which is gone by the time you type the next command..Either use
pgrep apt
(man pgrep
), or modify your search string so it's no longer a match for the string "apt
", e.g.grep '[a]pt'
.