创建iso挂载点:
root@Ispsrv:~# mkdir /mnt/uos
配置永久挂载:
root@Ispsrv:~# vi /etc/fstab
#添加内容
/dev/cdrom /mnt/uos iso9660 defaults 0 0
挂载全部:
root@Ispsrv:~# mount -a
mount: /mnt/uos: WARNING: device write-protected, mounted read-only.
查看挂载:
root@Ispsrv:~# df -h
文件系统 容量 已用 可用 已用% 挂载点
udev 951M 0 951M 0% /dev
tmpfs 198M 6.0M 192M 3% /run
/dev/sda5 20G 3.5G 17G 18% /
tmpfs 986M 0 986M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 986M 0 986M 0% /sys/fs/cgroup
/dev/sda3 21G 3.9G 16G 20% /recovery
/dev/sda1 1.5G 105M 1.3G 8% /boot
/dev/sda6 20G 78M 20G 1% /deepin/userdata
tmpfs 198M 0 198M 0% /run/user/0
/dev/sr0 3.8G 3.8G 0 100% /mnt/uos #此处为新挂载
root@Ispsrv:~#
修改源配置文件:
root@Ispsrv:~# vi /etc/apt/sources.list
#源文件内容为:
-------------------------------------------------------------
root@Ispsrv:~# cat /etc/apt/sources.list
## Generated by deepin-installer
deb https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
#deb-src https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
-------------------------------------------------------------
#修改后内容为:
-------------------------------------------------------------
root@Ispsrv:~# cat /etc/apt/sources.list
## Generated by deepin-installer
#deb https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
#deb-src https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
deb [trusted=yes] file:///mnt/uos fou main
root@Ispsrv:~#
若是内网的话还需要配置:
root@Ispsrv:~# vi /etc/apt/sources.list.d/appstore.list
#注释里面的一行
root@Ispsrv:~# cat /etc/apt/sources.list.d/appstore.list
#deb https://enterprise-store-packages.chinauos.com/appstore eagle appstore
root@Ispsrv:~#
进行源更新:
root@Ispsrv:~# apt update
获取:1 file:/mnt/uos fou InRelease
忽略:1 file:/mnt/uos fou InRelease
获取:2 file:/mnt/uos fou Release [1,578 B]
获取:2 file:/mnt/uos fou Release [1,578 B]
获取:3 file:/mnt/uos fou Release.gpg
忽略:3 file:/mnt/uos fou Release.gpg
获取:4 file:/mnt/uos fou/main amd64 Packages [648 kB]
获取:5 file:/mnt/uos fou/main i386 Packages [177 kB]
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
所有软件包均为最新。
root@Ispsrv:~#
测试安装:
root@Ispsrv:~# apt install vim net-tools bash-completion -y
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
vim 已经是最新版 (2:8.1.0875.1-1+deepin)。
bash-completion 已经是最新版 (1:2.8-6)。
net-tools 已经是最新版 (1.60+git20180626.aebd88e-1)。
下列软件包是自动安装的并且现在不需要了:
cracklib-runtime dde-account-faces dde-qt5integration dde-qt5integration5 dde-qt5integration5.5 dde-qt5xcb-plugin
deepin-installer-timezones deepin-pw-check fbterm imageworsener libc-ares2 libcrack2 libdeepin-pw-check libdtkcore5.5 libdtkgui5.5
libdtkwidget5.5 libheif1 libindicator3-7 libiniparser1 liblqr-1-0 libmaxminddb0 libqt5xdg3 libqt5xdgiconloader3 libqtermwidget5-0
libsmi2ldbl libutf8proc2 libwireshark-data libwireshark11 libwiretap8 libwscodecs2 libwsutil9 libx86-1 libxcb-composite0
libxcb-damage0 libxklavier16 mtools qtermwidget5-data squashfs-tools
使用'apt autoremove'来卸载它(它们)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
root@Ispsrv:~#
配置完成自行测试下载即可!
标签:UOS,uos,fou,Ispsrv,配置,mnt,本地,软件包,root From: https://blog.51cto.com/lyx888/5866153