首页 > 解决方案 > 尝试在 Debian 上安装 ppa 包

问题描述

sudo add-apt-repository ppa:thopiekar/sierrabreeze使用 debian 10 buster 在我的 bash 中运行此代码后。尝试后立即出现以下错误消息sudo apt update

Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease                                                      
Hit:3 http://deb.debian.org/debian buster-updates InRelease                                              
Ign:4 http://dl.google.com/linux/chrome/deb stable InRelease                                             
Hit:5 http://dl.google.com/linux/chrome/deb stable Release                         
Get:7 http://ppa.launchpad.net/thopiekar/sierrabreeze/ubuntu focal InRelease [15.4 kB]
Err:7 http://ppa.launchpad.net/thopiekar/sierrabreeze/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D51DB14E9FFECCF3
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/thopiekar/sierrabreeze/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D51DB14E9FFECCF3
E: The repository 'http://ppa.launchpad.net/thopiekar/sierrabreeze/ubuntu focal 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

编辑

sudo apt install sierrabreeze

Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sierrabreeze : Depends: libc6 (>= 2.29) but 2.28-10 is to be installed
                Depends: libqt5core5a (>= 5.12.2) but 5.11.3+dfsg1-1+deb10u3 is to be installed
E: Unable to correct problems, you have held broken packages

有什么帮助解决这个问题吗?

标签: debian

解决方案


您可以手动安装 gpg 密钥:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D51DB14E9FFECCF3

您还需要编辑thopiekar-ubuntu-sierrabreeze-focal.list文件。

sudo nano /etc/apt/sources.list.d/thopiekar-ubuntu-sierrabreeze-focal.list

更改focalbionic

deb http://ppa.launchpad.net/thopiekar/sierrabreeze/ubuntu bionic main

运行:

sudo apt update
sudo apt install sierrabreeze

推荐阅读