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

BlackWOlf   
   Á¶È¸ 1425   Ãßõ 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 122/5686
2015-12   1516633   ¹é¸Þ°¡
2014-05   4980561   Á¤ÀºÁØ1
03-14   1542   ¹ä¾Ë1±èÇü±Ù1
03-14   1118   µµ¾Æ»ïÃÌ
03-13   1079   ¹Ì´ã
03-13   1773   °­Çѱ¸
03-13   1128   ¿Ã´Ð½º
03-13   1278   ±¤ÁÖµ¿Å°È£Å×
03-13   1693   ¸¶½ºÄÚÆ®
03-13   1286   ¹«¸íÀÎ12
03-13   1255   õ¹øµÕ°³
03-13   1303   »õ·Î¿îÂ÷¿ø
03-13   1417   ¾ç½Ã¿­
03-13   1089   Ãʺ¸Àü»ê
03-13   2116   ¸¶¿Õ
03-13   1434   µµ¾Æ»ïÃÌ
03-12   1538   ¹Ì´ã
03-12   1281   2CPUÃÖÁÖÈñ
03-12   1517   judeivan
03-12   1532   Æ縯
03-12   1426   BlackWOlf
03-12   1669   ¶Ñºñ´Â¶Ó¶Ó