OS : Ubuntu 16.04
Áõ»ó)
ÀνºÅϽº¸¦ »ý¼ºÇÏ°í apt-getÀ» ÅëÇØ ÆÐÅ°Áö ¾÷µ¥ÀÌÆ®¸¦ ÇÏ·Á´Â µµÁß ¿¡·¯°¡ ¹ß»ý
.....................................
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
# ps aux |grep apt
root 1152 0.0 0.0 4508 1704 ? Ss 09:56 0:00 /bin/sh /usr/lib/apt/apt.systemd.daily
_apt 1709 4.9 0.2 41996 5660 ? S 09:56 0:01 /usr/lib/apt/methods/http
root 1713 0.0 0.0 12944 1028 pts/0 S+ 09:57 0:00 grep --color=auto apt
¿øÀÎ)
ÀÌ¹Ì apt-get ¸¦ ÅëÇØ ÀÛ¾÷ÁßÀÌ¸é¼ lock ÀÌ °É·ÁÀÖ´Â »óÅÂ
Ubuntu 16.04¿¡¼´Â ±âº»À¸·Î systemd timer ¸¦ ÅëÇØ unattended upgradey (¹«Àξ÷±×·¹À̵å) µ¥¸óÀÌ Á¦°øµÇ¾îÀÖ½À´Ï´Ù.
# systemd-analyze
Startup finished in 3.392s (kernel) + 2min 27.703s (userspace) = 2min 31.096s
# systemd-analyze blame
2min 317ms apt-daily.service
21.680s cloud-init.service
3.494s cloud-init-local.service
2.780s cloud-config.service
2.534s dev-vda1.device
1.000s lvm2-monitor.service
878ms apparmor.service
...............................
...............................
°ü·ÃÆÄÀÏ
/lib/systemd/system/apt-daily.service
/lib/systemd/system/apt-daily.timer
# systemctl disable apt-daily.service
# systemctl disable apt-daily.timer
°ü·ÃµÈ ÀÚ·á´Â ¾Æ·¡ ¸µÅ©¸¦ Âü°í