Ubuntu Offline Repository 구성
일이 있어, Test를 하려니 Network가 기본으로 잡히지 않았다 ... Intel I350 part인데, 왜 안되지 ...
igb driver를 설치하려니, gcc와 make가 없어 불가하다고 ...
천상 iso에서 설치해야 해서 ... offline repository 구성...
1. enable Ubuntu root
# sudo passwd root
> create root password
2. Remove repository data
# rm /etc/apt/sources.list.d/*
# mv /etc/apt/sources.list /etc/apt/sources.list.org
3. create mount point
# mkdir -p /mnt/ubuntu/
# mount -o loop,ro ubuntu-20.04.2.0-desktop-amd64.iso /mnt/iso
or # mount -o loop,ro /dev/cdrom /mnt/iso
4. Configure repository
# touch /etc/apt/sources.list
# add-apt-repository "deb file:/mnt/ubuntu/ $(lsb_release -cs) main"
# apt update
5. Install packages
# apt install "package_name"
# apt install gcc make
참조:
https://studyforus.tistory.com/223
https://hiseon.me/linux/ubuntu/package-offline-install/