Ubuntu使用teamviewer连接windows电脑

1,下载安装teamviewer

TeamViewer Linux Download for Remote Desktop access and collaboration

sudo apt install -f teamviewer_15.25.5_amd64.deb

 如报错没有权限,命令前加 sudo

卸载软件

#查找软件安装包名称
sudo dpkg --get-selections | grep ‘软件相关名称’
#卸载软件
sudo apt-get remove --purge 软件名称 
#不推荐使用sudo apt-get autoremove --purge

apt - Unable to locate package -- when the /file/ is right in the directory (it's a .deb) - Ask Ubuntu

When no path is specified, apt assumes you are referring to a package name, not a file. Apt requires the full path to install a package from a deb file, even when the package is in the current directory. The path to the current directory is ./

So, instead of this:

sudo apt install *.deb

you should use the full path:

sudo apt install ./*.deb

However, to avoid conflicting dependencies, you should update your package list before you begin like this:

sudo apt update
sudo apt install ./*.deb

Additionally, if you install using dpkg -i package.deb or dpkg --force-depends -i package.deb

sudo dpkg --force-depends -i /path/to/package.deb

you need to run the following command to install the necessary dependencies after installation.

sudo apt -f install

Just run the command as is and do not specify a file or a package name.

You see, the --force-depends flag simply returns dependency errors as warnings and does not download or install the necessary dependencies. sudo apt -f install uses the "fix" flag to actually fix those dependencies.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值