sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
* ca-certificates : ca-certificate는 certificate authority에서 발행되는 디지털 서명.
SSL 인증서의 PEM 파일이 포함되어 있어 SSL 기반 앱이 SSL 연결이 되어있는지 확인가능.
* curl : 특정 웹사이트에서 데이터를 다운로드 받을 때 사용.
* (apt-transport-https : 패키지 관리자가 https를 통해 데이터 및 패키지에 접근할 수 있도록 한다.)
* (software-properties-common : *PPA를 추가하거나 제거할 때 사용.)
sudo apt-get install \ > ca-ceca-certificates \ > curl \ > gnupg \ > lsb-release Reading package lists... Done Building dependency tree Reading state information... Done lsb-release is already the newest version (11.1.0ubuntu2). lsb-release set to manually installed. The following additional packages will be installed: dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv libcurl4 Suggested packages: pinentry-gnome3 tor parcimonie xloadimage scdaemon The following packages will be upgraded: ca-certificates curl dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv libcurl4 14 upgraded, 0 newly installed, 0 to remove and 175 not upgraded. Need to get 3100 kB of archives. After this operation, 7168 B disk space will be freed. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-client amd64 2.2.19-3ubuntu2.2 [97.4 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 dirmngr amd64 2.2.19-3ubuntu2.2 [330 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-server amd64 2.2.19-3ubuntu2.2 [90.2 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-utils amd64 2.2.19-3ubuntu2.2 [481 kB] Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-agent amd64 2.2.19-3ubuntu2.2 [232 kB] Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg amd64 2.2.19-3ubuntu2.2 [482 kB] Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgconf amd64 2.2.19-3ubuntu2.2 [124 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-l10n all 2.2.19-3ubuntu2.2 [51.7 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg all 2.2.19-3ubuntu2.2 [259 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgsm amd64 2.2.19-3ubuntu2.2 [217 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgv amd64 2.2.19-3ubuntu2.2 [200 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20211016ubuntu0.20.04.1 [141 kB] Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.15 [161 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.15 [235 kB] Fetched 3100 kB in 6s (554 kB/s) Preconfiguring packages ... (Reading database ... 32289 files and directories currently installed.) Preparing to unpack .../00-gpg-wks-client_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-wks-client (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../01-dirmngr_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking dirmngr (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../02-gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-wks-server (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../03-gnupg-utils_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gnupg-utils (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../04-gpg-agent_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg-agent (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../05-gpg_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpg (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../06-gpgconf_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgconf (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../07-gnupg-l10n_2.2.19-3ubuntu2.2_all.deb ... Unpacking gnupg-l10n (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../08-gnupg_2.2.19-3ubuntu2.2_all.deb ... Unpacking gnupg (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../09-gpgsm_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgsm (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Preparing to unpack .../10-gpgv_2.2.19-3ubuntu2.2_amd64.deb ... Unpacking gpgv (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ... Setting up gpgv (2.2.19-3ubuntu2.2) ... (Reading database ... 32289 files and directories currently installed.) Preparing to unpack .../ca-certificates_20211016ubuntu0.20.04.1_all.deb ... Unpacking ca-certificates (20211016ubuntu0.20.04.1) over (20210119~20.04.2) ... Preparing to unpack .../curl_7.68.0-1ubuntu2.15_amd64.deb ... Unpacking curl (7.68.0-1ubuntu2.15) over (7.68.0-1ubuntu2.7) ... Preparing to unpack .../libcurl4_7.68.0-1ubuntu2.15_amd64.deb ... Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.15) over (7.68.0-1ubuntu2.7) ... Setting up ca-certificates (20211016ubuntu0.20.04.1) ... Updating certificates in /etc/ssl/certs... rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL 7 added, 11 removed; done. Setting up gnupg-l10n (2.2.19-3ubuntu2.2) ... Setting up gpgconf (2.2.19-3ubuntu2.2) ... Setting up libcurl4:amd64 (7.68.0-1ubuntu2.15) ... Setting up curl (7.68.0-1ubuntu2.15) ... Setting up gpg (2.2.19-3ubuntu2.2) ... Setting up gnupg-utils (2.2.19-3ubuntu2.2) ... Setting up gpg-agent (2.2.19-3ubuntu2.2) ... Setting up gpgsm (2.2.19-3ubuntu2.2) ... Setting up dirmngr (2.2.19-3ubuntu2.2) ... Setting up gpg-wks-server (2.2.19-3ubuntu2.2) ... Setting up gpg-wks-client (2.2.19-3ubuntu2.2) ... Setting up gnupg (2.2.19-3ubuntu2.2) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... /sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
Processing triggers for man-db (2.9.1-1) ... Processing triggers for install-info (6.7.0.dfsg.2-5) ... Processing triggers for ca-certificates (20211016ubuntu0.20.04.1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. jkoogi@JKASUS:~$ sudo apt-get install ca-certificates curl gnupg lsb-release Reading package lists... Done Building dependency tree Reading state information... Done lsb-release is already the newest version (11.1.0ubuntu2). ca-certificates is already the newest version (20211016ubuntu0.20.04.1). ca-certificates set to manually installed. curl is already the newest version (7.68.0-1ubuntu2.15). gnupg is already the newest version (2.2.19-3ubuntu2.2). 0 upgraded, 0 newly installed, 0 to remove and 175 not upgraded. jkoogi@JKASUS:~$jkoogi@JKASUS:~$
jkoogi@JKASUS:~$ sudo apt-get update
Get:1 https://download.docker.com/linux/ubuntu focal InRelease [57.7 kB]
Err:1 https://download.docker.com/linux/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
W: GPG error: https://download.docker.com/linux/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository 'https://download.docker.com/linux/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
jkoogi@JKASUS:~$
jkoogi@JKASUS:~$ docker version Client: Docker Engine - Community Version: 23.0.1 API version: 1.42 Go version: go1.19.5 Git commit: a5ee5b1 Built: Thu Feb 9 19:46:56 2023 OS/Arch: linux/amd64 Context: default Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? jkoogi@JKASUS:~$
* 오류 : 도커 실행이 안된다. WSL 우분투 환경에서 systemd 를 사용하지 않아서 발생하는 문제라고 한다.
jkoogi@JKASUS:/usr/sbin$ sudo apt-get install cgroupfs-mount Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: cgroupfs-mount 0 upgraded, 1 newly installed, 0 to remove and 175 not upgraded. Need to get 6320 B of archives. After this operation, 32.8 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 cgroupfs-mount all 1.4 [6320 B] Fetched 6320 B in 0s (13.3 kB/s) Selecting previously unselected package cgroupfs-mount. (Reading database ... 32544 files and directories currently installed.) Preparing to unpack .../cgroupfs-mount_1.4_all.deb ... Unpacking cgroupfs-mount (1.4) ... Setting up cgroupfs-mount (1.4) ... invoke-rc.d: could not determine current runlevel Processing triggers for man-db (2.9.1-1) ... Processing triggers for systemd (245.4-4ubuntu3.15) ... jkoogi@JKASUS:/usr/sbin$ sudo cgroupfs-mount jkoogi@JKASUS:/usr/sbin$ sudo service docker start * Starting Docker: docker [ OK ] jkoogi@JKASUS:/usr/sbin$
jkoogi@JKASUS:/usr/sbin$ sudo docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 2db29710123e: Pull complete Digest: sha256:aa0cc8055b82dc2509bed2e19b275c8f463506616377219d9642221ab53cf9fe Status: Downloaded newer image for hello-world:latest
Hello from Docker! This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.
To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash