标签: apt

是否可以确定一个软件包是如何安装在 debian 上的?

有没有办法找出软件包是如何安装在 Debian 上的?

即查看它是否是手动安装的或哪个包将其作为依赖项。

此信息应该在某处可用(例如用于apt-get autoremove工作),但我不确定如何为单个包显示它。

debian package-management ubuntu apt

3
推荐指数
1
解决办法
885
查看次数

如何修复损坏的 apt/perl 库?

我已经将 Raspberry Pi 设置为 Web 服务器,直到 5 分钟前一切正常,而且我似乎搞砸了 man-db、apt 或某些 perl 库。由于某些加载错误,apt-get 似乎没有正确更新和安装应用程序:

harry@raspberrypi ~ $ sudo apt-get upgrade

...

将升级以下软件包:

pypy-upstream raspi-config 暂存

...

在 37 秒内获取 40.4 MB (1088 kB/s)

/usr/bin/perl: 加载共享库时出错:/usr/lib/libperl.so.5.14: n onzero padding in e_ident

...

设置 man-db (2.6.2-1) ...

/usr/bin/perl: 加载共享库时出错:/usr/lib/libperl.so.5.14: n onzero padding in e_ident

dpkg: 错误处理 man-db (--configure):

...

处理时遇到错误:man-db

子进程安装后安装脚本返回错误退出状态 127

E:子进程/usr/bin/dpkg返回错误码(1)

完整的 pastebin 在这里:http : //pastebin.com/LYKQ5Xde

我按照某个论坛上的建议尝试了 'sudo dpkg-reconfigure -phigh -a' 并得到了同样的 perl 错误:

/usr/bin/perl:加载共享库时出错:/usr/lib/libperl.so.5.14:e_ident 中的非零填充

非常感谢任何帮助,谢谢!

linux debian perl dpkg apt

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

apt-get:使用替代来源.list

在我的/etc/apt/sources.list我有:

deb http://http.debian.net/debian wheezy main
deb-src http://http.debian.net/debian wheezy main
Run Code Online (Sandbox Code Playgroud)

现在我需要从jessie(测试)获取包的源代码。sources.list当我打电话时如何指定不同的apt-get source

apt-get source package-name
Run Code Online (Sandbox Code Playgroud)

PS:我不想修改/etc/apt/sources.list,或者我想apt-get以无法修改系统范围源列表的用户身份运行。

debian apt

3
推荐指数
1
解决办法
2561
查看次数

apt-get 请求的脚本回答“要继续在 bash 中输入短语‘是的,按我说的做!’”

我的脚本正在 chroot 中用 systemd 替换 sysvinit,同时使用 debootstrap 构建 debian 映像。

由于这是一个“危险”的动作,apt-get 会问一个愚蠢的问题:“要继续输入‘是的,按我说的做!’”

我该如何编写对此的回复?

编辑:我尝试了所有 -y --yes --force-yes 选项,但它们不起作用。

debian bash debootstrap bash-scripting apt

3
推荐指数
1
解决办法
2653
查看次数

如何在 Ubuntu 中使用 APT 安装软件包期间修复错误

我试图使用 APT 安装软件包,但出现错误:

UserName@PCname:~$ sudo apt-get install php7.2

Reading package lists... Done
Building dependency tree       
Reading state information... Done
php7.2 is already the newest version (7.2.7-1+0~20180622080852.23+jessie~1.gbpfd8e2e).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up php7.1-fpm (7.1.18-1+0~20180611145758.18+jessie~1.gbp2b32f6) ...
/var/lib/dpkg/info/php7.1-fpm.postinst: 2: /etc/apache2/envvars: =/var/run/apache2: not found
dpkg: error processing package php7.1-fpm (--configure): …
Run Code Online (Sandbox Code Playgroud)

dpkg ubuntu apt

3
推荐指数
1
解决办法
9644
查看次数

apt dist-upgrade 和 apt update 之间有什么区别?

apt dist-upgrade与 just 和有什么不一样apt upgrade?我应该使用哪一个?

linux debian dpkg ubuntu apt

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

运行 Kali Linux 更新命令后出错

我已经下载了 Kali Linux 映像和 Kali Linux VM 映像超过 7 次,但是apt-get update在正确安装后每次运行命令时都会显示相同的错误。

Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]

Err:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease

  The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>

Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease …
Run Code Online (Sandbox Code Playgroud)

linux apt kali-linux

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

无法获取 apt-get 更新错误

我在运行时遇到问题sudo apt-get update。我总是收到这个错误:

Err:1 https://deb.packager.io/gh/opf/openproject-ce xenial InRelease
  Could not resolve host: deb.packager.io
Hit:2 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:5 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:7 https://download.docker.com/linux/ubuntu xenial InRelease
Reading package lists... Done
W: Failed to fetch https://deb.packager.io/gh/opf/openproject-ce/dists/xenial/InRelease  Could not resolve host: deb.packager.io
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

我不明白为什么 apt 试图openproject在更新时获取包。我删除了整个包并运行了,sudo apt-get purge openproject但我仍然遇到相同的错误。

知道如何解决这个问题吗?

linux ubuntu apt-get apt ubuntu-16.04

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

在 Ubuntu 上安装旧版本的 Firefox-ESR 软件包

我想在 Ubuntu 16.04 上安装 Firefox v52 ESR 以便访问旧版 Java 小程序。当前版本的 Firefox 60 ESR不再允许我这样做。

实际上,我想apt-get install firefox-esr=52.5.3esr+build1-0ubuntu0.16.04.1deb http://ppa.launchpad.net/mozillateam/ppa/ubuntu xenial main,但该版本显然不再可以从此 PPA 中获得。

在这种情况下,如何获取旧版本的 Ubuntu 软件包?

firefox ubuntu firefox-extensions apt

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

Ubuntu 16.04.5 LTS (xenial) 下 PostgreSQL 10 未满足的依赖项

按照https://www.postgresql.org/download/linux/ubuntu/ 中的官方说明,我收到以下错误:

The following packages have unmet dependencies:
 postgresql-10 : Depends: postgresql-client-10
                 Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed
                 Depends: libicu60 (>= 60.1-1~) but it is not installable
                 Depends: libpq5 (>= 9.3~) but it is not going to be installed
                 Depends: libssl1.1 (>= 1.1.0) but it is not installable
                 Recommends: sysstat but it is not going to be installed
Run Code Online (Sandbox Code Playgroud)

Linux发行版是: Ubuntu 16.04.5 LTS

我尝试了很多关于清除、升级 apt 的建议,但没有任何帮助。

是否可以在 Ubuntu 16.04.5 LTS 下安装 PostgreSQL 10?

另外,我现在无法安装 PostgreSQL …

postgresql installation apt ubuntu-16.04

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

我的 kali linux 发生了什么?E:错误,pkgProblemResolver::Resolve 生成​​中断,这可能是由保留的软件包引起的。我是新手

发生这种情况时我正在安装这个软件包。

root@kali:~/airgeddon# apt install isc-dhcp-server
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:
 gsettings-desktop-schemas : Breaks: mutter (< 3.31.4) but 3.30.2-7 is to …
Run Code Online (Sandbox Code Playgroud)

dependencies packages linebreaks apt kali-linux

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

Kali 中的 apt-get 更新问题

我在 WSL2 中运行 Kali Linux。这是一个新安装(使用wsl --install)但是当我尝试时apt-get update出现以下错误:

W: An error occurred during the signature verification. The repository is not updated and the previous 
index files will be used. GPG error: http://mirrors.jevincanders.net/kali kali-rolling InRelease: The 
following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  The following signatures 
were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org>
W: Some index files failed to download. They have been ignored, or old ones used instead. …
Run Code Online (Sandbox Code Playgroud)

linux gnupg apt kali-linux

1
推荐指数
3
解决办法
2589
查看次数