sudo apt update
sudo apt upgrade
sudo apt install gcc
sudo apt install make
sudo apt install snapd
sudo snap install go --classic
1060;/111;,172; Ȣ16;면, sudo snap install go --classic 에서 1060;런 메세1648;가 출/141;.121;니다.
error: cannot list snaps: cannot communicate with server: Get http://localhost/v2/snaps: dial unix /run/snapd.socket: connect: no such file or directory
구글링 ,160;색해서,160;
$ sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig160;
$ sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target160;
$ exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
1060;/111;,172; Ȣ16;면 .108;다고 Ȣ16;lj16;데, 1200;lj16; 3번1704; 명/161;에서 시스템1060; 1473;단.104;네요.
nsenter: failed to parse pid: '-a'
[CLOSED]
1060;런 메세1648;가 나Ꮢ1;니다.
1312;Ǻ16;ǥ12;ᓠ1;드립니다.
nsenter: failed to parse pid: '-a'
¾îµò°¡¿¡¼ º¯¼ö·Î ¼±¾ðµÇ¾î¾ß ÇÒ $(pidof systemd)°¡ ´©¶ôµÇ¾î¼
-t -a·Î -t¿¡ ÀÎÀÚ°¡ ÀÖ¾î¾ß Çϴµ¥ ¾ø´Ù º¸´Ï -a¸¦ ÀÎÀÚ·Î Çؼ®ÇÏ·Á´Ù ¿À·ù°¡ ³ °Í °°½À´Ï´Ù.
±×³É ºó ÁÙÀÌ ³ª¿À¸é º¯¼ö ÀÚü°¡ ¼±¾ðµÇÁö ¾ÊÀº °ÍÀÔ´Ï´Ù.
ps -ef | grep systemd
Çϸé pid°¡ °¡Àå ¿ÞÂÊ ¼ýÀÚ·Î ³ª¿À´Ï±î
±×°É ³Ö¾îÁÖ½Ã¸é µË´Ï´Ù.
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°ªÀ» ã¾Ñ´Âµ¥, Á¦°¡ ¸í·ÉÀ» À߸ø³ÖÀº°Í °°Àºµ¥, ¾î¶»°Ô ³ÖÀ¸¸é µÇ³ª¿ä?? ^^;;
ÇØ´ç º¯¼ö·Î ġȯµÇ´Â °ÍÀÌÁö º¯¼ö °ªÀ» ³ÖÀ¸½Ã¸é ¾ÈµË´Ï´Ù ¤¾¤¾
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
¸®´ª½º¿¡¼ °¡Àå Èûµé¾î ÇÏ´Â°Ô ±ÇÇÑÀÌ ¾Æ´Ò±î ÇÕ´Ï´Ù ¤¾¤¾
Ȥ½Ã³ª ¸ô¶ó ´ÙÀ½ Áú¹®(?)À» À§ÇÑ ÆÁÀ» µå¸®ÀÚ¸é
ä±¼Àº Áß¿äÇÑ Æ÷ÀÎÆ®°¡ ¾Æ´Õ´Ï´Ù.
¾î¶² ¼ºñ½º(Á¤È®ÇÑ ¼ºñ½º ¸í)À» ¾î¶² Ç÷§Æû(x86/ubuntu 22.04 server µîµî/ ȤÀº ¼¹ö È£½ºÆÃ, ÀÓ´ë »ç¾ç)¿¡¼
¼³Ä¡Çϱâ À§ÇØ ¾î¶°ÇÑ °úÁ¤À» ÅëÇØ ¼³Ä¡ÇÏ´Ù ÀÌ·± ¿¡·¯°¡ ¹ß»ýÇÏ¿´°í
¿¡·¯°Ë»öÇؼ ÀÌ·± ÇØ°áÃ¥À» ½ÃµµÇÏ¿´À¸³ª ¾îµð ºÎºÐ¿¡¼ ½ÇÆÐÇÏ¿´´Ù. Á¤µµ¸é µµ¿ò µå¸®´Âµ¥ ÃæºÐÇÒ µí ÇÕ´Ï´Ù.
Àúµµ ´öºÐ¿¡ nsenter ¶ó´Â ½Å±âÇÑ(?) ¸í·É¾î¸¦ óÀ½ µè°Ô µÇ¾ú³×¿ä ¤¾¤¾