¿ìºÐÅõ 20.04¿¡¼­ snapd ¿¡¼­

BlackWOlf   
   Á¶È¸ 1281   Ãßõ 0    

sudo apt update

sudo apt upgrade
sudo apt install gcc
sudo apt install make
sudo apt install snapd
sudo snap install go --classic

이렇게 하면, sudo snap install go --classic 에서 이런 메세지가 출력됩니다.

error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: no such file or directory

구글링 검색해서, 

$ sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig 

$ sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target 

$ exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME

이렇게 하면 된다고 하는데, 저는 3번째 명령에서 시스템이 중단되네요.

nsenter: failed to parse pid: '-a'

[CLOSED]

이런 메세지가 나옵니다.

조언부탁드립니다.

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
nsenter: failed to parse pid: '-a'


¾îµò°¡¿¡¼­ º¯¼ö·Î ¼±¾ðµÇ¾î¾ß ÇÒ $(pidof systemd)°¡ ´©¶ôµÇ¾î¼­
-t -a·Î -t¿¡ ÀÎÀÚ°¡ ÀÖ¾î¾ß Çϴµ¥ ¾ø´Ù º¸´Ï -a¸¦ ÀÎÀÚ·Î Çؼ®ÇÏ·Á´Ù ¿À·ù°¡ ³­ °Í °°½À´Ï´Ù.
     
BlackWOlf 03-12
´äº¯°¨»çµå¸³´Ï´Ù. ¸®´ª½ºÃʺ¸ÀÎ Àú¿¡°Ô´Â ¾î·Á¿î ³»¿ëÀ̱º¿ä ^^;;;
          
echo $(pid) ÇÏ¸é º¯¼ö°¡ Ãâ·ÂµÇ¾î¾ß Çϴµ¥
±×³É ºó ÁÙÀÌ ³ª¿À¸é º¯¼ö ÀÚü°¡ ¼±¾ðµÇÁö ¾ÊÀº °ÍÀÔ´Ï´Ù.

ps -ef | grep systemd
Çϸé pid°¡ °¡Àå ¿ÞÂÊ ¼ýÀÚ·Î ³ª¿À´Ï±î
±×°É ³Ö¾îÁÖ½Ã¸é µË´Ï´Ù.
               
BlackWOlf 03-13
Çѹø Çغ¸°Ú½À´Ï´Ù. Á¤¸» °¨»çÇÕ´Ï´Ù ^^;;
               
BlackWOlf 03-13
root@a129304b493b:~# sudo snap install go --classic
error: cannot communicate with server: Post http://localhost/v2/snaps/go: dial unix /run/snapd.socket: connect: no such file or directory
root@a129304b493b:~# sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64  InRelease
Reading package lists... Done
root@a129304b493b:~# sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
root@a129304b493b:~# ps -ef | grep systemd
root      10607  10170  0 01:38 pts/1    00:00:00 grep --color=auto systemd
root@a129304b493b:~# exec sudo nsenter -t $(10607) -a su - $LOGNAME
bash: 10607: command not found
nsenter: failed to parse pid: '-a'
[CLOSED]
±¸Â÷´Ï´Ô ¸»¾¸Ã³·³ pid°ªÀ» ã¾Ñ´Âµ¥, Á¦°¡ ¸í·ÉÀ» À߸ø³ÖÀº°Í °°Àºµ¥, ¾î¶»°Ô ³ÖÀ¸¸é µÇ³ª¿ä??  ^^;;
                    
-t 10607 À» ÇÏ½Ã¸é µË´Ï´Ù $(º¯¼ö¸í) ÀÔ´Ï´Ù.
ÇØ´ç º¯¼ö·Î ġȯµÇ´Â °ÍÀÌÁö º¯¼ö °ªÀ» ³ÖÀ¸½Ã¸é ¾ÈµË´Ï´Ù ¤¾¤¾
                         
BlackWOlf 03-13
°¨»çÇÕ´Ï´Ù~~  ^^;;
                         
BlackWOlf 03-13
À̹ø¿¡´Â ÀÌ·± ¿¡·¯°¡ ³ª¿À³×¿ä. ¤Ð.¤Ð;;
nsenter: stat of /proc/11482/ns/user failed: No such file or directory
                    
¼ÖÂïÈ÷ ¾î¶² ¹®Á¦°¡ ÀÖ°í, ¾î¶² ÇØ°áÃ¥À» ¿øÇϴ°ÇÁö ¸ô¶ó¼­ ÀÌ·±½ÄÀ¸·Î´Â µµ¿òÀÌ µÇ±â Èûµé °Í °°½À´Ï´Ù.
Á¦ ÄÄÇ»ÅÍ¿¡¼­ ÀÓÀÇÀÇ ÇÁ·Î¼¼½º·Î µé¾î°¡¼­ º¸·Á°í ÇÏ´Ï, ÀÏ¹Ý »ç¿ëÀÚ ±ÇÇÑÀ¸·Î´Â Á¢±ÙÀÌ ¾ÈµÇ´Â µð·ºÅ丮 ÀÔ´Ï´Ù.
½ÇÇàÇϽŠ¸í·É¾î´Â root¿¡¼­ ÇϽŰǰ¡¿ä?
dr-x--x--x  2 root root 0  3¿ù 13 16:57 ns
                         
BlackWOlf 03-14
³×, clore.ai ¿¡¼­ ¼­¹ö¸¦ ÀÓ´ëÇؼ­, ¿ùµå·£µå cpuÄÚÀΠä±¼À» Çغ¼·Á°í ÇÏ°í ÀÖ½À´Ï´Ù. ¼­¹ö°¡ ¿ìºÐÅõ ÁêÇÇÅÍ À̹ÌÁö¸¦ ¿¬°áÇؼ­ ÀÓ´ëÇÏ´Â °Í °°Àºµ¥, ¾Æ¹«·¡µµ Á÷Á¢ ±â°è¸¦ ÄÁÆ®·ÑÇÏ´Â ¹æ½ÄÀÌ ¾Æ´Ï¾î¼­, ±ÇÇѹ®Á¦¿¡¼­ ¸·È÷´Â °Í °°³×¿ä. ±×³É Æ÷±âÇÏ´Â°Ô ³ªÀ»°Í °°½À´Ï´Ù ¤¾¤¾  ±¸Â÷´Ï´Ô, ½Å°æ½áÁּż­ ³Ê¹« °¨»çµå¸³´Ï´Ù. ¿À´Ãµµ Áñ°Å¿î ÇÏ·çµÇ¼¼¿ä~~  ^^;;
                    
¼­¹ö ÀÓ´ë¶ó¸é ±×·¡µµ root ±ÇÇÑÀÌ ÀÖÀ»ÅÙµ¥ À©µµ¿ì¿¡ Àͼ÷ÇϽŠºÐµéÀÌ(´ë°³´Â Çѱ¹¿¡¼­´Â °ü¸®ÀÚ ±ÇÇÑÀ¸·Î ¾²´Ï)
¸®´ª½º¿¡¼­ °¡Àå Èûµé¾î ÇÏ´Â°Ô ±ÇÇÑÀÌ ¾Æ´Ò±î ÇÕ´Ï´Ù ¤¾¤¾

Ȥ½Ã³ª ¸ô¶ó ´ÙÀ½ Áú¹®(?)À» À§ÇÑ ÆÁÀ» µå¸®ÀÚ¸é
ä±¼Àº Áß¿äÇÑ Æ÷ÀÎÆ®°¡ ¾Æ´Õ´Ï´Ù.
¾î¶² ¼­ºñ½º(Á¤È®ÇÑ ¼­ºñ½º ¸í)À» ¾î¶² Ç÷§Æû(x86/ubuntu 22.04 server µîµî/ ȤÀº ¼­¹ö È£½ºÆÃ, ÀÓ´ë »ç¾ç)¿¡¼­
¼³Ä¡Çϱâ À§ÇØ ¾î¶°ÇÑ °úÁ¤À» ÅëÇØ ¼³Ä¡ÇÏ´Ù ÀÌ·± ¿¡·¯°¡ ¹ß»ýÇÏ¿´°í
¿¡·¯°Ë»öÇؼ­ ÀÌ·± ÇØ°áÃ¥À» ½ÃµµÇÏ¿´À¸³ª ¾îµð ºÎºÐ¿¡¼­ ½ÇÆÐÇÏ¿´´Ù. Á¤µµ¸é µµ¿ò µå¸®´Âµ¥ ÃæºÐÇÒ µí ÇÕ´Ï´Ù.

Àúµµ ´öºÐ¿¡ nsenter ¶ó´Â ½Å±âÇÑ(?) ¸í·É¾î¸¦ óÀ½ µè°Ô µÇ¾ú³×¿ä ¤¾¤¾
                         
BlackWOlf 03-14
°³ÀÎ PC¿¡ ¿ìºÐÅõ ¼³Ä¡ÇÏ°í, ä±¼ÇÁ·Î±×·¥ ³ëµå ¼³Ä¡Çϸé Àß µÇ°Åµç¿ä. ÀÏ´ÜÀº Á¦°¡ ³Ê¹« À©µµ¿ì ȯ°æ¿¡¸¸ Àͼ÷ÇÏ´Ùº¸´Ï, ¸®´ª½º¿¡ ´ëÇØ ÀüÇô ¹®¿ÜÇÑÀÌ¿©¼­ ±×·¯°ÚÁö¿ä. ¸®´ª½º ¼³Ä¡°¡À̵带 ºÁµµ Àß ¸ð¸£´Ï. ^^;;  Ȥ½Ã¶óµµ ±¸Â÷´ÔÀÌ ³Ê¹« ½É½ÉÇؼ­ ½Ã°£ÀÌ ³²¾Æµµ½Å´Ù¸é(¤¾¤¾), https://docs.worldland.foundation/v/kor/undefined-1/install-node ¿ä°Å Çѹø ºÁº¸¼¼¿ä. °¨»çÇÕ´Ï´Ù.
          
dateno1 03-12
¸» ±×´ë·Î systemdÀÇ pid¸¦ ³ÖÀ¸¶õ°Å°°À¸´Ï sudo ps -A|grep systemdÇؼ­ È®ÀÎÈÄ ÇØ´ç°ª ¼öµ¿À¸·Î ³Ö¾îº¸¼¼¿ä
               
BlackWOlf 03-13
Á¶¾ð °¨»çµå¸³´Ï´Ù. ¸»¾¸´ë·Î Çѹø Çغ¸°Ú½À´Ï´Ù ^^;;


QnA
Á¦¸ñPage 3727/5678
2015-12   1477294   ¹é¸Þ°¡
2014-05   4940414   Á¤ÀºÁØ1
2023-01   1415   Zer0
2008-12   5389   Á¶ÀçÇö
2012-04   4516   ¹«¾Æ
2003-02   10891   ÀÌ¿øº¹
2008-12   4890   Á¤¼ºÈÆ
2003-02   11127   ÀεðÁð
2012-04   11427   ÀÌÇö¼®1
2014-04   3227   °¡ºü·Î±¸³ª
2016-09   4960   ÀÌÁØ¿ë
2005-11   5314   ¹ÚÁØ¿ë
2009-01   5284   ±è°æ·Ï
2012-04   6042   ¸²½º
2014-04   3787   NaN
2016-09   5900   ¸®¾óÄíÆÛ
2003-03   11511   À̰浿
2012-04   8335   ±×·¡ÇǾÆ
10-06   311   lovemiai
2005-11   5818   ÃÖÇà¿Ï
2016-09   5140   hyunsemo
2014-04   4050   ºí·ç¿µ»ó