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
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
ordpkg --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.