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

BlackWOlf   
   Á¶È¸ 1560   Ãßõ 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 133/5696
2015-12   1566612   ¹é¸Þ°¡
2014-05   5030058   Á¤ÀºÁØ1
2021-12   1313   Àü¼³¼ÓÀǹ̡¦
2023-11   1313   seoulmetro
04-23   1313   Sakura24
2022-07   1313   Æ۽̱Û
04-29   1314   2CPUÃÖÁÖÈñ
2023-08   1314   À嵿°Ç2014
2022-10   1314   Jhqeds
05-09   1314   ¹¹µçÆȾƿä
03-11   1314   Kimmandu
2019-03   1314   ¿ìÁÖÁ¦ÀϹ̳²
04-22   1314   ¹«¾Æ
07-26   1314   »ç½ÄÀÌ
2022-09   1314   ¾Æ¸¶µ¥¿ì¾²
2022-01   1314   ¾îÄg
2023-03   1315   Dante0001
05-06   1315   ³ª³ª³ª³ª³ª
07-28   1315   ¯¯¸Ç
2023-12   1315   ±×¸°
04-04   1315   L2½ºÀ§Ä¡
2021-11   1315   AMDºô·±