一般情况下我们都是使用apt-get install进行软件安装,但是有时候也有可直接install的文件例如.deb.
接下来就记录一下.dep软件的安装与卸载
安装:
直接找到软件,双击就可以进行安装。
或者使用命令
sudo dpkg -i xxxxx.deb
但是有时候这个安装会出现软件版本啊,依赖包关系安装失败,会有数据残留。
所以就用到了卸载
先找到软件的名称:whereis,which,find,grep都可以的
可以直接使用dpkg命令进行卸载,这叫谁污染谁治理。
dpkg -l |grep xxx #xxx就是安装的软件名
然后找到之后,使用下面的方法进行卸载
sudo dpkg --purge xxxx rm -rf ~/.local/share/xxxx
这样的话就彻底卸载了。
以安装teamviewer为例子,介绍ubuntu下teamviewer的安装过程。
1.先去官网下载teamviewer,https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
2.然后执行安装命令
sudo dpkg -i teamviewer_13.0.5693_amd64.deb
竟然报错了,报错信息如下:
Selecting previously unselected package teamviewer. (Reading database ... 253632 files and directories currently installed.) Preparing to unpack teamviewer_13.0.5693_amd64.deb ... Unpacking teamviewer (13.0.5693) ... dpkg: dependency problems prevent configuration of teamviewer: teamviewer depends on qtdeclarative5-controls-plugin (>= 5.5) | qml-module-qtquick-controls (>= 5.5); however: Package qtdeclarative5-controls-plugin is not installed. Package qml-module-qtquick-controls is not installed. teamviewer depends on qtdeclarative5-dialogs-plugin (>= 5.5) | qml-module-qtquick-dialogs (>= 5.5); however: Package qtdeclarative5-dialogs-plugin is not installed. Package qml-module-qtquick-dialogs is not installed. dpkg: error processing package teamviewer (--install): dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ... Errors were encountered while processing: teamviewer
执行过程中一般都会失败,这是因为你X86架构64位的操作系统,必须下载的64位的软件,然后这个软件要依赖32位架构的包,所以要安装下依赖。
3.安装依赖
#添加架构依赖 sudo dpkg --add-architecture i386 #更新软件库 sudo apt-get update
4.执行强制安装
sudo apt-get -f install
5.接下来就可以安装
sudo dpkg -i teamviewer_13.0.5693_amd64.deb
6.修改配置文件
#停止teamviewer sudo teamviewer --daemon stop #通过vim修改配置文件(需要管理员权限) sudo vim /opt/teamviewer/config/global.conf #添加下面两行(一般添加配置都是在文末) [int32] EulaAccepted = 1 [int32] EulaAcceptedRevision = 6
7.启动teamviewer并设置密码
#启动teamviewer teamviewer --daemoon start #获取Id(貌似没啥鸟用,可以忽略) teamviewer --info print id #设置密码(这个密码不知道是不是登陆的密码,我是在注册的账号) sudo teamviewer --passwd xxxxxxxx
8.然后你就可以愉快的打开teamviewer,进行远程控制操作了。
来源:https://www.cnblogs.com/fxust/p/8040706.html