[Bug 424462] [NEW] apt-mirror won't delete it's lock-file on exit

JuRiJ juraj.kvasnica at gmail.com
Fri Sep 4 17:03:40 UTC 2009


Public bug reported:

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/var/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

** Affects: apt-mirror (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  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
+ /var/spool/apt-mirror/var/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

-- 
apt-mirror won't delete it's lock-file on exit
https://bugs.launchpad.net/bugs/424462
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list