ubuntu离线安装包下载和安装

一、确认本机ubuntu的发行版本

方法1:

复制代码
root@ac810:/home/ac810/alex# lsb_release  -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal

方法2:

复制代码
root@ac810:/home/ac810/alex# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

二、去官网( https://pkgs.org/)查找需要的软件包和下载链接

比如需要下载 lm-sensors, 在 search栏中添加搜索

找到ubuntu20.04 对应的deb包,点击进去,找到 Download --> BinaryPackage

复制粘贴 对应的url到浏览器即可完成下载
http://archive.ubuntu.com/ubuntu/pool/universe/l/lm-sensors/lm-sensors_3.6.0-2ubuntu1_amd64.deb

三、上传下载的deb包到ubuntu

四、安装deb

复制代码
dpkg -i lm-sensors_3.6.0-2ubuntu1_amd64.deb
相关推荐
Better Bench2 小时前
WSL2 Ubuntu 中 Claude CLI “command not found” 故障排查与修复
linux·ubuntu·claude·wsl·claudecode
LSG_Dawn14 小时前
XBOX360 kinect + ROS2_humble
ubuntu·深度相机
jing.wang_202515 小时前
NVIDIA CUDA C++编程环境搭建--Windows + Ubuntu 22.04
c++·windows·ubuntu·gpu算力
黑白园18 小时前
个人台式机VMware 15及Ubuntu 16.04.5卸载以及VMware 16.2.3及Ubuntu 24.04.4安装
linux·ubuntu
想你依然心痛2 天前
从监控数据到告警管理:Prometheus与Alertmanager部署实战
ubuntu·prometheus·内网穿透·系统监控·cpolar·告警管理
黑白园2 天前
解决服务器拒绝连接导致ubuntu镜像无法下载问题 https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/
ubuntu
yangpan0112 天前
ubuntu输入法安装及选择
linux·运维·ubuntu
强里秋千墙外道2 天前
Ubuntu 开机 Kernel Panic:HWE 内核升级失败 + NVIDIA DKMS 踩坑实录
linux·运维·ubuntu
啊啊啊迈 旋棍2 天前
【译】TypeScript 7 测试版已在 Visual Studio 2026 18.6 Insiders 3 中默认启用
ubuntu·typescript·visual studio
Eloudy3 天前
ubuntu 22.04安装 cuda 12.8.2
linux·运维·ubuntu