
ubuntu@ip-172-31-38-170:/$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
ubuntu@ip-172-31-38-170:/$ sudo apt-get update
Hit:1 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [11.5 kB]
Fetched 125 kB in 3s (47.3 kB/s)
Reading package lists... Done
ubuntu@ip-172-31-38-170:/$ sudo apt-get install -y python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (20.0.2-5ubuntu1.6).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
ubuntu@ip-172-31-38-170:/$ sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/pip3 because link group pip is broken
update-alternatives: warning: not replacing /usr/bin/pip with a link
ubuntu@ip-172-31-38-170:/$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000
ubuntu@ip-172-31-38-170:/$ mkdir sparta
mkdir: cannot create directory ‘sparta’: Permission denied
ubuntu@ip-172-31-38-170:/$
작성한 코드 및 에러 메세지
ubuntu@ip-172-31-38-170:/$ mkdir sparta
mkdir: cannot create directory ‘sparta’: Permission denied
ubuntu@ip-172-31-38-170:/$
