°Ô½Ã¹° 1,358°Ç
   
apt-daily.service
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2017-08-01 (È­) 18:12 Á¶È¸ : 13247
±ÛÁÖ¼Ò :
                                
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


°ü·ÃµÈ ÀÚ·á´Â ¾Æ·¡ ¸µÅ©¸¦ Âü°í

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.