手动安装
关于此任务
如果 Ubuntu 系统上没有网络环境,则可以使用 ArtInChip 提供的 deb 离线包进行离线安装。
遵照以下步骤执行手动离线安装:
过程
-
安装 deb 文件。
deb 离线包分以下三类:
-
tools 包
cd tools sudo dpkg -i *.deb
-
python 包
cd python sudo dpkg -i *.deb
-
vim 包
cd vim sudo dpkg -i vim-tiny_2%3a8.1.2269-1ubuntu5.7_amd64.deb
-
-
执行下列命令完成所选 deb 文件的安装:
sudo dpkg -i *.deb
-
deb 文件安装完成后,如发现依赖缺失,可按照下列任一方式解决。非必需,可跳过此步。
不同的系统的依赖可能会有不同。
- 单独安装某一 deb 安装包,获取缺失的依赖。
- 在另外一有网络环境的计算机上下载缺失的依赖包。
- 复制所下载的依赖包到本服务器,安装依赖包
aic@aic-virtual-machine:~/work/test$ sudo dpkg -i libgcc-9-dev_9.3.0-17ubuntu1~20.04_amd64.deb ...... dpkg: dependency problems prevent configuration of libgcc-9-dev:amd64: libgcc-9-dev:amd64 depends on libitm1 (>= 9.3.0-17ubuntu1~20.04); however: Package libitm1 is not installed. libgcc-9-dev:amd64 depends on libatomic1 (>= 9.3.0-17ubuntu1~20.04); however: Package libatomic1 is not installed. libgcc-9-dev:amd64 depends on libasan5 (>= 9.3.0-17ubuntu1~20.04); however: Package libasan5 is not installed. libgcc-9-dev:amd64 depends on liblsan0 (>= 9.3.0-17ubuntu1~20.04); however: Package liblsan0 is not installed. libgcc-9-dev:amd64 depends on libtsan0 (>= 9.3.0-17ubuntu1~20.04); however: Package libtsan0 is not installed. libgcc-9-dev:amd64 depends on libubsan1 (>= 9.3.0-17ubuntu1~20.04); however: Package libubsan1 is not installed. libgcc-9-dev:amd64 depends on libquadmath0 (>= 9.3.0-17ubuntu1~20.04); however: Package libquadmath0 is not installed. dpkg: error processing package libgcc-9-dev:amd64 (--install): dependency problems - leaving unconfigured Errors were encountered while processing: libgcc-9-dev:amd64 aic@aic-virtual-machine:~/work/test$ apt-get download libitm1 libatomic1 libasan5 liblsan0 libtsan0 libubsan1 libquadmath0 Get:1 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libasan5 amd64 9.3.0-17ubuntu1~20.04 [394 KB] Get:2 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libatomic1 amd64 10.3.0-1ubuntu1~20.04 [9,284 B] Get:3 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libitm1 amd64 10.3.0-1ubuntu1~20.04 [26.2 KB] Get:4 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 liblsan0 amd64 10.3.0-1ubuntu1~20.04 [835 KB] Get:5 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libquadmath0 amd64 10.3.0-1ubuntu1~20.04 [146 KB] Get:6 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libtsan0 amd64 10.3.0-1ubuntu1~20.04 [2,009 KB] Get:7 http://cn.archive.ubuntu.com/ubuntu focal-updates/main amd64 libubsan1 amd64 10.3.0-1ubuntu1~20.04 [784 KB] Fetched 4,204 KB in 18s (231 KB/s) aic@aic-virtual-machine:~/work/test$ cp *.deb /media/aic/SDCARD/