在 Ubuntu 20.04 LTS 中安装 TeamViewer for Linux 时出现问题

在 Ubuntu 20.04 LTS 中安装 TeamViewer for Linux 时出现问题

新从 Windows 10 转换到 Ubuntu 所以请对我温柔一点!!!

我确实从事 IT 支持工作,但除了安装 Ubuntu 之外没有使用 Linux 的经验。

我正在尝试安装 Linux 版 Teamviewer,因为我在英国,而我的女朋友在美国使用 Windows 10 机器,我需要远程访问她的机器。

我已成功从以下位置下载了 .deb 15.5.3 软件包https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

我打开了终端并运行

$ cd /home/pete/Downloads
~/Downloads$ sudo apt install ./teamviewer_15.5.3_amd64.deb

但它返回以下错误...

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 messengerfordesktop : Depends: libappindicator1 but it is not installed or
                                libappindicator but it is not installable or
                                libappindicator-gtk3 but it is not installable
                       Depends: gconf2
                       Depends: gconf-service
                       Depends: python
                       Recommends: hunspell
                       Recommends: git
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我尝试过apt --fix-broken install但出现以下错误

$ apt --fix-broken install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

帮助!!!

谢谢

亲切的问候

皮特

答案1

您应该sudo对每个命令使用 now 之后的命令,或者直接以 sudo 形式输入sudo su

好的,您只需要先安装包,然后修复依赖关系。

使用 安装软件包sudo dpkg -i "whereisthepackage"。 (如果您之前输入过sudo su,sudo 将不会询问您密码,因为您是以 root 身份登录的。要退出此行为并后悔您的帐户,您只需输入exit,您就会回到您的帐户。)

然后通过输入来修复依赖关系sudo apt install --fix-broken-y如果您不想被询问是否安装某些软件包,请将其添加到命令末尾。

答案2

apt主要用于从在线存储库安装程序。对于从命令行安装本地 DEB 包,默认程序是dpkg。但是,我建议使用包gdebi中的程序,gdebi-core而不是dpkg。它与 类似,dpkg但不同之处在于dpkg它会在安装前自动解析必要的依赖项。

要安装gdebi,请运行sudo apt install gdebi-core

要安装本地 DEB 包,请运行sudo gdebi <PackageName>.deb。确保将其替换<PackageName>为包的实际名称。

相关内容