apt list --installed
查找特定的软件包,使用grep命令过滤结果
apt list --installed | grep package_name
卸载,apt purge [安装包]
apt purge package_name
错误信息:
GPG error: http://security.ubuntu.com jammy-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C
解决:
获取 gpg 公钥
gpg --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C
导出公钥,加入到 apt 信任密钥
gpg --export --armor 871920D1991BC93C | sudo apt-key add -
查看被信任的秘钥
apt-key list