Mar*_*cha 0 repository fingerprint-reader 18.04
我正在尝试让指纹扫描仪工作,但甚至无法添加存储库。我是来自 Fedora 的 ubuntu 新手,也许我做错了什么,因为其他人似乎在半年前就可以做到这一点......
所以这是这个答案:在 16.04 中使用指纹读取器
但第一步:
sudo add-apt-repository ppa:fingerprint/fingerprint-gui
LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".
Run Code Online (Sandbox Code Playgroud)
进而:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
Run Code Online (Sandbox Code Playgroud)
我做错了什么吗?
编辑:所以我试图避免使用 add-apt-repository 命令。
我添加了包含内容的文件 /etc/apt/sources.list.d/fingerprint.list
deb [arch=amd64] http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic contrib
Run Code Online (Sandbox Code Playgroud)
然后用错误进行了 apt 更新:
Get:6 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease [15,4 kB]
Hit:10 http://security.ubuntu.com/ubuntu bionic-security InRelease
Err:6 http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EFD5FA852F20733F
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EFD5FA852F20733F
E: The repository 'http://ppa.launchpad.net/fingerprint/fingerprint-gui/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)
EDIT2:所以 IIUC 似乎缺少一些公钥。我如何验证存储库 gpg 是否正常?我想在使用以下方法盲目添加公钥之前这样做:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3C962022012520A0
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
我知道这个问题有点老了,你可能已经解决了,但我也遇到过这个问题,我花了几个小时才弄清楚到底发生了什么以及应该做些什么来解决它。
首先,一个简短的问题:您是否在 Ubuntu 发行版中安装了 Cinnamon Flavor?(我打赌你做到了)
如果是这样,请继续阅读。
我写了一个自述文件,如下,描述了如何修复它。希望它也能帮助其他人!如果您有任何问题,请告诉我。
这是一个教程,用于在 Ubuntu 18.04 LTS 上修复 Cinnamon 4.0 安装,以防万一您丢失了软件和更新应用程序,并且无法通过终端运行它sudo software-properties-gtk,也不能使用诸如sudo add-apt-repository PPAwork 之类的命令。
在尝试运行这些命令中的任何一个时,您可能会遇到以下问题:
LSB codename: 'bionic'.
This codename isn't currently supported.
Please check your LSB information with "lsb_release -a".
Run Code Online (Sandbox Code Playgroud)
当您通过 PPA 存储库安装 Cinnamon 时,它还安装了一个名为mintsources的包。这个包本质上控制了Software Sources包,它是Software & Updates的 Linux Mint 版本。
这意味着您的 Ubuntu 版本的software-properties-common、software-properties-gtk和python3-software-properties被mintsources取代。
因此,当您尝试运行依赖于这些软件包中的任何一个的任何命令时,他们将尝试在文件夹“/usr/share/mintsources/”中查找您的 Mint 发行版,并在您的 LSB 代号不同的情况下输出错误从文件夹中的任何现有发行版。请参阅来源:mintsources.py。
撤消这个非常简单,虽然在互联网上找到解决方案有点困难。
首先,通过运行以下命令将 Ubuntu 的三个官方软件包下载到一个临时文件夹中:
$ mkdir /tmp/cinnamon-fix/
$ cd /tmp/cinnamon-fix/
$ wget http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-gtk_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.96.24.32.1_all.deb http://archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.96.24.32.1_all.deb
Run Code Online (Sandbox Code Playgroud)
根据消息来源,在编写本自述文件时,这些是每个包的最新版本:
现在你应该删除有问题的包:
$ sudo apt remove --purge software-properties-gtk software-properties-common python3-software-properties -y
Run Code Online (Sandbox Code Playgroud)
最后,删除mintsources包,使其不会替换您将要安装的 Mint 版本的包,并通过dpkg安装它们:
PS:确保您在我们之前创建的文件夹“/tmp/cinnamon-fix/”中
$ sudo apt autoremove mintsources -y
$ sudo dpkg -i *
Run Code Online (Sandbox Code Playgroud)
如果第一个命令告诉您此操作可能有害,请不要害怕,您可以安全地继续此操作。
为确保sudo apt update后续sudo apt upgrade不会强制重新安装mintsources并再次破坏您的系统,您现在应该通过常规软件和更新包删除 PPA 存储库。
仅在您确实需要更新与此 PPA 相关的内容时才再次添加它,但请注意,您必须再次执行此过程。
完毕!:)
附加信息见https://forum.level1techs.com/t/upgrading-to-cinnamon-4-0-on-18-04-dont-forget-one-package/135561。非常感谢用户FurryJackman。
| 归档时间: |
|
| 查看次数: |
4421 次 |
| 最近记录: |