Comment 0 for bug 424462

Revision history for this message
Juraj Kvasnica (jkvasnica) wrote :

Binary package hint: apt-mirror

affected package:
apt-mirror 0.4.6-0ubuntu2

use case:
install apt-mirror

run as root:
su - apt-mirror -c apt-mirror

hit "Ctrl + c" to abort the command

run again:
su - apt-mirror -c apt-mirror

and you get this output:
apt-mirror is already running, exiting at /usr/bin/apt-mirror line 187.

the case for this error message is that file:
/var/spool/apt-mirror/apt-mirror.lock
was not deleted on apt-mirror exit.
If you delete apt-mirror.lock file, then apt-mirror will run OK, but you have to delete the file every time apt-mirror finishes it's job.

possible bug introduction was in apt-mirror (0.4.6-0ubuntu1) karmic, because file locking was added:
  * added file locking, more than one apt-mirror instance cant run at once