标签: apt

APT:缺少公钥?怎么修?

我更新了我的 sources.list

deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main
Run Code Online (Sandbox Code Playgroud)

并称

 gpg --keyserver subkeys.pgp.net --recv-keys 1C4CBDCDCD2EFD2A
Run Code Online (Sandbox Code Playgroud)

结果,好像导入了什么东西,所以在这台服务器上找到了key!?

不过现在我得到了错误:

GPG 错误:http ://repo.percona.com 挤压发布:无法验证以下签名,因为公钥不可用:NO_PUBKEY 1C4CBDCDCD2EFD2A

  1. 通常如何禁用/忽略 apt 中的密钥检查?

  2. 解决问题本身的建议方法是什么。有没有办法在其他地方搜索密钥?我该怎么做?

debian apt xtrabackup

4
推荐指数
2
解决办法
9612
查看次数

DEB:“提供:”字段被忽略

我需要用一个自定义的包替换一个包,它有自己的名字(foo-origpackage)。为了允许将其用作替代品,我将这Provides: origpackage一行添加到控制文件中。apt-cache show foo-origpackage列出“提供”条目就好了。但是,当我想根据 origpackage 安装文件时,它会失败(“未安装软件包 origpackage”)。

我缺少的“真实”包和虚拟包之间有什么区别吗?

编辑:

准确地说,我要替换的是用于 Squeeze 的 xen-utils-common。我的 tao-xen-utils-common 有以下control文件:

来源:tao-xen-utils-common
部分:内核
优先级:可选
维护者:Creshal <administration@tao.at>
构建依赖:debhelper
标准版本:3.8.0
主页:http://tao.at

包:tao-xen-utils-common
架构:全部
依赖:gawk、lsb-base、udev、xenstore-utils、tao-firewall
提供:xen-utils-common
冲突:xen-utils-common
替换:xen-utils-common
说明:Xen 管理工具——常用文件(修改)
 管理通过 Xen 虚拟化的系统的用户空间工具
 机监视器。
 修改为与 TAO 防火墙一起使用。

但是,安装 xen-utils-4.0 失败:

foo@bar# apt-cache showpkg tao-xen-utils-common
包:tao-xen-utils-common
版本: 
4.0.0-1tao1 (/var/lib/apt/lists/repo.tao.at_dists_stable_main_binary-amd64_Packages) (/var/lib/dpkg/status)
 描述语言: 
                 文件:/var/lib/apt/lists/repo.tao.at_dists_stable_main_binary-amd64_Packages
                  MD5:7c2503f563fca13b33b4eb3cbcb3c129


反向取决于: 
  tao-防火墙,tao-xen-utils-common
  tao-防火墙,tao-xen-utils-common
依赖项: 
4.0.0-1tao1 - gawk (0 (null)) lsb-base (0 (null)) udev (0 (null)) xenstore-utils (0 (null)) tao-firewall (0 (null)) …

debian packages dependencies deb apt

4
推荐指数
1
解决办法
1882
查看次数

在 debian 存储库上使用 apt-get 源代码,而不使用 /etc/apt/source.list

apt-get source我正在尝试作为 debian 系统上的普通用户使用squeeze

cyrus-imapd-2.4我想从存储库中检索源testing/wheezy

apt-get source无需 root 权限即可工作;然而,似乎没有办法让 apt-get 从/etc/apt/sources.list.

是否有任何命令行选项、备用sources.list文件、环境变量可以apt与自定义存储库一起使用?

我确实有 root 访问权限,所以我可以更改/etc/apt/sources.list,但是出于多种原因我真的不想这样做。

debian apt debian-squeeze

4
推荐指数
1
解决办法
3851
查看次数

PSQL 64 位驱动程序错误

我在 Hyper-V 下设置了 Ubuntu 12.04 64 位服务器。我已经安装了 Pervasive 64 位 SQL 驱动程序,以便可以每天运行股票更新程序脚本(从另一台运行 Exchequer 软件/PSQL 数据库的本地服务器更新外部 MySQL 数据库)。

这些驱动程序似乎冲突,正如我在尝试运行任何 apt-get 命令时发现的那样:

apt-get update
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by apt-get)
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by apt-get)
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by apt-get)
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12)
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12)
apt-get: /usr/local/psql/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12)
Run Code Online (Sandbox Code Playgroud)

任何帮助都会很棒。

psql libraries apt

4
推荐指数
1
解决办法
666
查看次数

ufw 阻塞 apt

我有与此处描述的相同的问题,但给定的解决方案对我不起作用:

ufw 阻止 apt 和 dns

当我添加规则ufw deny out to any,并将端口添加80, 443/tcp, ssh-port为例外,然后添加时,iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT我仍然无法使用 apt-get update 或类似的东西。

root@iof304:~# ufw status 状态:活动

To                         Action      From
--                         ------      ----
22                         DENY        Anywhere
80                         ALLOW       Anywhere
(ssh)                      LIMIT       Anywhere
22                         DENY        Anywhere (v6)
80                         ALLOW       Anywhere (v6)
(ssh)                      ALLOW       Anywhere (v6)

(ssh)                      ALLOW OUT   Anywhere
Anywhere                   DENY OUT    Anywhere
80                         ALLOW OUT   Anywhere
443/tcp                    ALLOW OUT   Anywhere
(ssh)                      ALLOW OUT …
Run Code Online (Sandbox Code Playgroud)

ubuntu port ufw apt

4
推荐指数
2
解决办法
1万
查看次数

从 debian backports 池安装包

我想将我的 dovecote 安装升级到版本 2。我在这里发现了这个包。我也已经添加deb http://backports.debian.org/debian-backports squeeze-backports main到我的sources.list. 而是需要pool目录里面的包。我如何通过 访问那里的包apt?我正在使用 debian 挤压

debian patch dovecot apt

4
推荐指数
1
解决办法
7916
查看次数

为什么 apt 没有在 Wheezy 上安装依赖项?

如果我跑

# apt-get install sendmail
Reading package lists... Done
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:
 sendmail : Depends: sendmail-bin but it is not going to …
Run Code Online (Sandbox Code Playgroud)

debian apt debian-wheezy

4
推荐指数
1
解决办法
1万
查看次数

如何重新创建/etc/cron.daily/apt?

在我的 Debian 6.0.8 系统上,/etc/cron.daily/apt文件丢失。因此,无人值守升级不起作用。

我该如何重新创建/修复/etc/cron.daily/apt

debian upgrade cron.daily apt

4
推荐指数
1
解决办法
1249
查看次数

为什么“apt-get autoremove sendmail”会留下依赖项?

我注意到安装 sendmail,然后卸载它,使用 apt-get 会留下许多不需要的文件。

sudo apt-get install sendmail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  liblockfile-bin liblockfile1 make procmail sendmail-base sendmail-bin
  sendmail-cf sensible-mda
Suggested packages:
  make-doc sendmail-doc rmail logcheck resolvconf sasl2-bin
Recommended packages:
  default-mta mail-transport-agent fetchmail
The following NEW packages will be installed:
      liblockfile-bin liblockfile1 make procmail sendmail sendmail-base
      sendmail-bin sendmail-cf sensible-mda
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2256 kB …
Run Code Online (Sandbox Code Playgroud)

debian disk-space-utilization dependencies apt

4
推荐指数
1
解决办法
634
查看次数

Gitlab Debian 存储库公钥不可用

运行“sudo apt update”时出现以下错误:

user@gitlab:~$ sudo apt update
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.fi.debian.org/debian stretch InRelease
Hit:3 http://ftp.fi.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.fi.debian.org/debian stretch Release
Get:6 https://packages.gitlab.com/gitlab/gitlab-ee/debian stretch InRelease [23.3 kB]
Err:6 https://packages.gitlab.com/gitlab/gitlab-ee/debian stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3F01618A51312F3F
Fetched 23.3 kB in 2s (11.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: An error occurred during the signature verification. …
Run Code Online (Sandbox Code Playgroud)

debian apt gitlab

4
推荐指数
1
解决办法
2495
查看次数