Ubuntu

apt-mirror flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror line apt-mirror is already running, exiting at /usr/bin/apt-mirror line

Naan 2014. 8. 14. 11:02
320x100

# apt-mirror

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror line 194.

apt-mirror is already running, exiting at /usr/bin/apt-mirror line 197.

위와 같이 에러가 발생이 된다면


# find -name apt-mirror.lock 

찾아서


# rm -Rf /var/spool/apt-mirror/mirror/ftp.daum.net/var/apt-mirror.lock

삭제후 


# apt-mirror

or

Downloading 150 index files using 20 threads...

Begin time: Thu Aug 3 10:59:08 2014

[20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...

End time: Thu Aug 3 10:59:23 2014


Proceed indexes: [PPPPPPPPPP]


8.4 GiB will be downloaded into archive.

Downloading 1580 archive files using 20 threads...

Begin time: Thu Aug 14 11:00:18 2014

[20]... [19]... [18]...


혹시 그래도 안된다면
# chown -R apt-mirror:apt-mirror 경로


하면 정상적으로 작동이 된다.


320x100