Dpkg remove to stop processes

Active3 hr before
Viewed126 times

7 Answers


Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers , Size of set of integers with all sums of two distinct elements giving squares ,An even bigger issue is that removing this package using the command: sudo dpkg -r bleh, 2 How did you create dpkg package? using tar.gz? You have to tune your un-install script in dpkg to stop process before remove files. – Satish Aug 27 '12 at 19:55

As recommended by the Debian New Maintainer's Guide, please use dh_installinit (building your whole package with debhelper, of course). By default, this will add scripts to start and stop on package installation and removal.

load more v

I removed all it created. But now, I just want to remove it from dpkg list, because I want to make my linux like if I never installed this package.,I have a custom package installed on my Ubuntu 10.10, and trying to remove it, I got:,So, I noted that on the installation script of this package, what it did was create an entry on my startup, create a folder on /opt and create a user., 1 If I have to guess, you answer "failed because the pre-removal script", this questions is about the "post-installation" script. You aren't answering the currently asked question. – Braiam Apr 7 '16 at 23:34

You may need to manually remove the package using:

sudo dpkg--purge--force - all package

Now you can remove the lock and reconfigure dpkg:,The above command will give you the PID of the processes using the lock files. Use this PID to kill the process., First run: lsof /var/lib/dpkg/lock Then make sure that process ...READ MORE,You can directly just remove the lock which is being used by any process using the following command:

I am trying to install a software using dpkg but I am getting this error. 

Error: dpkg frontend is locked by another process
load more v

man7.org > Linux > man-pages


The second time I run the exact same command, it works fine., Are there any "kill" commands in /root/stop-fs.sh? If you run the dpkg --purge the first time is this file removed? – icarus Dec 20 '19 at 16:00 ,My question is, why is the dpkg --purge process getting killed the first time it is run? What would be killing it?, Help Center Detailed answers to any questions you might have

The problem I'm currently having is when I run dpkg --purge <PACKAGE> the process gets killed by something (I'm unsure what):

root@host:/data# dpkg --purge <PACKAGE>
   (Reading database ... 32393 files and directories currently installed.)
   Removing <PACKAGE> (<VERSION) ... Terminated root@host:/data# echo $? 143 root@host:/data#
load more v

use top command it will list the running processes dynamically then press “K” it will ask for process ID(PID) so enter the PID of the process you want to kill., kavya Oct 11, 2010 @ 3:35 use top command it will list the running processes dynamically then press “K” it will ask for process ID(PID) so enter the PID of the process you want to kill. Link sathishvarma Jun 24, 2016 @ 13:59 it works thanks Link ,Hi Guys, i need to know the process id of the last killed process and who killed the Process?. where i can get that?,Hello i not able to get the PID of the process which i need to kill. I used pidof (process name),ps -A ,top command but i not got pid of the process

pidof httpd
pidof apache2
pidof firefox
load more v

Aptitude is a text based package manager for Debian which is front-end to ‘apt‘, which enables user to manage packages easily.,dpkg is the main package management program in Debian and Debian based System. It is used to install, build, remove, and manage packages. Aptitude is the primary front-end to dpkg.,A menu-driven package management tool, initially used during the first time install and now is replaced with aptitude.,Graphical package manager which makes it easy to install, upgrade and uninstall packages even to novice.

For installing an “.deb” package, use the command with “-i” option. For example, to install an “.deb” package called “flashpluginnonfree_2.8.2+squeeze1_i386.deb” use the following command.

   [email protected] ~
] # dpkg - i flashpluginnonfree_2 .8 .2 + squeeze1_i386.deb
load more v

Other "remove-undefined" queries related to "Dpkg remove to stop processes"