当前位置:网站首页>Ubunt 20.04 uses CDROM or ISO as the installation source
Ubunt 20.04 uses CDROM or ISO as the installation source
2022-06-12 04:39:00 【alfiy】
Some projects due to security requirements , It needs to be deployed in the intranet without Internet environment , So how to give... In an offline environment ubuntu Installing relevant software is a test for everyone linux It's time for basic knowledge . This article will lead you to use CDROM Or mount ISO The image can be configured in two ways ubuntu20.04 Offline installation source for .
Replace the installation source with cdrom
Use command
mv /etc/apt/sources.list /etc/apt/sources.list.bac
sudo apt-cdrom add
That's all right. .
The above method only supports physical machines with optical drives , And you happen to have ubuntu Operating system DVD Compact disc , If you test in a virtual machine , Then the above method may be problematic .
mount ISO Mirror image
1. Copy ISO file
take ubunt20.04 Mirror image ISO Copy the file to your ubuntu in , Remember the address you copied , Don't copy my .
2. mount ISO file
mount -o loop -t iso9660 /home/alfiy/ubuntu-20.04.1-desktop-amd64.iso /mnt
3. modify /etc/apt/sources.list file
mv /etc/apt/sources.list /etc/apt/sources.list.bac
echo "deb file:///mnt focal main restricted" > /etc/apt/sources.list
By the command above , my /etc/apt/sources.list It becomes the following file .
Does it look refreshing ? If your server becomes a networked environment , Don't forget to sources.list.bac Change it back .
4. Update source
apt clean all
apt update

If the prompt in the figure above appears, it indicates ISO The image has been mounted successfully , And as a local installation source .
Let's try installing a software .
apt install -y gcc

If the figure above appears, it indicates that you have attached ISO It's working normally , Quickly install the software you need in the offline environment .
边栏推荐
- QT compile 45 graphic report of security video monitoring system
- Install/Remove of the Service Denied!
- Smart panel WiFi linkage technology, esp32 wireless chip module, Internet of things WiFi communication application
- Labor
- LabVIEW about TDMS and Binary Storage Speed
- Install/Remove of the Service Denied!
- 2.28 (defect filling) data type conversion exception handling part multi threading
- @What happens if bean and @component are used on the same class?
- leetcode797. 所有可能的路径(中等)
- Data processing and data set preparation
猜你喜欢

Bearpi IOT lighting LED

kali_ Nat mode, bridging Internet / host only_ detailed

JWT learning and use

Data processing and data set preparation
![Epidemic data analysis platform work report [2] interface API](/img/63/383d52775790920bd2467d7ecacfe5.png)
Epidemic data analysis platform work report [2] interface API

leetcode797. All possible paths (medium)

QT compile 45 graphic report of security video monitoring system

Enterprise Architect v16

【高效】最强开发工具Ctool编译踩坑

Interview must ask: summary of ten classic sorting algorithms
随机推荐
Work report on epidemic data analysis platform [7] Alibaba cloud related
Manually encapsulate a foreacht and map
Please calculate the value of the following function recursively: PX (x, n) =x-x^2 +x^3- x^4+... (-1) n-1) (xn) n > 0 * * input format requirements: "%lf%d" prompt: "enter X and n:"
1. Mx6ull learning notes (II) - uboot migration
Call reminder
MySQL master-slave construction and Django implementation of read-write separation
调用提醒事项
Zabbix6.0 new feature GEOMAP map marker can you use it?
C# TaskFactory. Startnew method
[wechat applet] the mobile terminal selects and publishes pictures
spacy中en_core_web_sm安装问题
2022-02-28 WPF upper computer 126 understand mqtt
Betteland introduces milk products of non animal origin, which will be launched in the U.S. market in the near future
Operation of simulated examination platform for 2022 safety officer-b certificate examination questions
[SC] OpenService FAILED 5: Access is denied.
Oracle:decode function
Work report of epidemic data analysis platform [6.5] epidemic map
Daily practice (28): balance binary tree
mysqld: Can‘t create directory ‘D: oftinstall\mysql57 (Errcode: 2 - No such file or directory)
Is it safe for Guojin Securities Commission Jinbao to open an account? How should we choose securities companies?