Loading [Contrib]/a11y/accessibility-menu.js

ubuntu 离线安装软件

ubuntu 离线安装软件

1,总体安装步骤

1,安装一个新的Ubuntu服务器,最好是没有安装过软件包的

2, 修改数据源

修改文件 /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

更新 源 sudo apt-get update

3,修改缓存保存位置

sudo vi /etc/apt/apt.conf
内容:
dir::cache::archives /mnt/g/vars;
不要忘记分号结尾 /mnt/g/vars是保存位置

4,下载软件安装包

sudo apt-get -d install --reinstall aptitude  openjdk-8-jdk
openjdk-8-jdk 是软甲包

5,将下载的包复制到需要安装的电脑上

cd到上传的文件夹下 执行

sudo dpkg -i *.deb 
posted @   枫·影  阅读(439)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示