当前位置:网站首页>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 .
边栏推荐
- 关于线程池需要注意的几点
- Install pycharm under Kali and create a shortcut access
- [fpga+gps receiver] detailed design introduction of dual frequency GPS receiver based on FPGA
- Data processing and data set preparation
- 智能面板WiFi聯動技術,ESP32無線芯片模組,物聯網WiFi通信應用
- How to use union all in LINQ- How to use union all in LINQ?
- New year news of osdu open underground data space Forum
- 疫情数据分析平台工作报告【6.5】疫情地图
- Mysql主从搭建与Django实现读写分离
- Brief introduction to 44 official cases of vrtk3.3 (combined with steamvr)
猜你喜欢

路灯照明物联网技术方案,ESP32-S3芯片通信应用,智能WiFi远程控制

eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )

Smart Panel wifi Linkage Technology, esp32 wireless chip module, Internet of Things WiFi Communication Application

Find missing sequence numbers - SQL query to find missing sequence numbers

How to use union all in LINQ- How to use union all in LINQ?

Using datetime in MySQL

kali_ Nat mode, bridging Internet / host only_ detailed

2022 examination questions and simulation examination for crane driver (limited to bridge crane)

Based on Visual Studio code Net Maui cross platform mobile application development

MFC General dialog color dialog
随机推荐
[efficient] the most powerful development tool, ctool, is a compilation tool
AI and logistics Patent
eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )
@What happens if bean and @component are used on the same class?
数据库新建表,以前没问题的,今天
QT compiling security video monitoring system 44 video uploading
SqEL简单上手
[issue 31] 360 background development practice experience - two rounds of technical aspects
JS function and variable have the same name (function and variable parsing rules)
Jwt Learning and use
智能面板WiFi聯動技術,ESP32無線芯片模組,物聯網WiFi通信應用
Detailed explanation of software testing process
Work report of epidemic data analysis platform [1] data collection
New year news of osdu open underground data space Forum
2022 self study materials for Zhejiang computer level III network and security technology examination (1) (updated on 2.28)
[fpga+gps receiver] detailed design introduction of dual frequency GPS receiver based on FPGA
Exception handling and unit testing
2022 electrician (elementary) operation certificate examination question bank and online simulation examination
疫情数据分析平台工作报告【42】CodeNet
Using datetime in MySQL