1、有ip但是ping不通百度,相当于有内网没外网。开始以为是DNS的问题,修改DNS后发现也没用,通过设置固定ip解决。dns不要用8.8.8.8,实测速度太慢。
#source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 192.168.1.55
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 114.114.114.114
2、更改apt源为国内源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main universe restricted
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main universe restricted
3、删除office等没用的软件腾出空间
sudo apt remove --purge thunderbird* libreoffice* chromium*
4、安装ds和其他的库
sudo apt install deepstream-5.0
5、移植开发好的软件