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

BlackWOlf   
   Á¶È¸ 1458   Ãßõ 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 4315/5688
2014-05   4999214   Á¤ÀºÁØ1
2015-12   1535035   ¹é¸Þ°¡
2018-07   3133   È­¶õ
2017-04   3544   kealice
2015-03   3817   ±è°Ç¿ì
2017-04   3753   È­ÀÌÆ®º¸µå
2022-06   3727   ¿µ»êȸ»ó
2013-11   33895   ºí·ç2014
2011-04   12798   ¾Æ¸§´Ù¿î³ëÀ»
2020-12   3646   NiteFlite9
2022-06   1465   ÄܽºÅºÆ¾
02-15   1704   ¸®³ª
2011-04   11290   °¡ºü·Î±¸³ª
2016-05   4121   À̼±±Ô
2017-04   3382   ½Öcpu
2022-07   4132   Ã¥°¥·®
2022-07   1585   ÇູÇϼ¼
03-05   1201   »ç´©½º
2011-06   7061   ºÐ´ç±èµ¿¼ö
2017-05   4716   ½É¹ÙÆ®
2011-06   7697   ¹Ú¿ì¿­
2017-05   3701   ÀϾ