一开始在ubuntu14上安装,安装不上。
之后看到teamviewer14的说明,要求是ubuntu16版本以上。
然后就重新安装了ubuntu16。
但是安装完tv14,在我连接时报错,说版本太旧。但是实事上,我两边的版本都已经是最新的了。
然后我安装完系统老是提示一些系统错误,在安装ubuntu16的时候并没有对磁盘格式化什么的,然后又重新格式化磁盘再安装ubunt16。
第二次安装完系统没有报系统内部错误。
teamviewer安装命令:
sudo apt-get update
sudo dpkg -i teamviewer_14.4.2669.amd64.deb
可能第一次会提示中途encounted error这类错误,就要输入
sudo apt install -f
再次输入sudo dpkg -i teamviewer_14.4.2669.amd64.deb
*** 关键部分 ***
sudo apt-get update 可能会报错。。。。。
报错信息类似E:Sub-process returned an error code
解决可以百度,还是挺多教程的。
个人参考内容:
https://blog.youkuaiyun.com/u010180815/article/details/79051184
博客内容如下:
ubuntu 在执行:
sduo apt-get update
出现如下错误:
Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi’
E: Sub-process returned an error code
此时可以利用以下解决方法:
sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
执行完成之后,应该就可以解决问题了。