AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题

问题[apt](computer)

Martin Hope
toddysm
Asked: 2022-08-23 16:08:19 +0800 CST

Debian apt-get upgrade 是否有办法指定要进行的更新

  • 6

查看apg-get upgrade选项,我看不到指定要应用更新的 Debian 版本的方法。例如,如果我目前有 Debian 10.0,有没有办法说;“我想应用直到 10.10 的所有更新,但不是之后的所有更新(目前 10.12 是最新的”?

apt debian
  • 1 个回答
  • 26 Views
Martin Hope
ManuelSchneid3r
Asked: 2022-07-14 02:15:08 +0800 CST

关于 debian 衍生产品的 Albert 存储库 GPG 关键问题

  • 5

由于 OBS 发布的密钥仅在大约两年内有效,可能会出现几个问题(主要是 EXPKEYSIG)。

apt albert
  • 1 个回答
  • 57 Views
Martin Hope
LuftWaffle
Asked: 2021-06-02 00:06:11 +0800 CST

Aptly 命令无法打开数据库

  • 6

我目前正在适当地运行一个 apt repo。然而,今天我的回购没有工作。当我尝试运行它时:

aptly repo list

该命令没有成功并显示:

Unable to open database, sleeping 11.058056147s, attempts left 10...

这个错误来自哪里,我该如何解决?

所以我目前有一个合适的服务器,同时我正在使用 CLI。

apt linux
  • 1 个回答
  • 176 Views
Martin Hope
yPhil
Asked: 2021-01-06 08:27:02 +0800 CST

防止命令输出显示在寻呼机中

  • 5

一些命令在寻呼机中显示它们的输出,并且不返回。这是此类命令的示例:

apt changelog zsh

从man apt页面:

changelog
    changelog downloads a package changelog and displays it through sensible-pager. The server name and
    base directory is defined in the APT::Changelogs::Server variable (e. g.
    http://packages.debian.org/changelogs for Debian or http://changelogs.ubuntu.com/changelogs for
    Ubuntu). By default it displays the changelog for the version that is installed. However, you can
    specify the same options as for the install command.

...但是没有任何关于将选项传递给 saidsensible-pager或使用另一个选项。

我怎样才能得到它的前 N ​​行,更好的是,解析输出以提取我需要的信息?

apt pager
  • 1 个回答
  • 29 Views
Martin Hope
Scott Colby
Asked: 2020-12-21 21:03:24 +0800 CST

APT:如何安装推荐的依赖项并且在删除安装包之前不自动删除它们

  • 5

想象一个包foo有一个推荐的依赖bar和一个推荐的依赖baz。如何为以下行为配置 APT?

  1. apt install foo: 安装foo和bar; 不安装baz
  2. apt autoremove: 没有变化
  3. apt remove foo: 卸载foo
  4. apt autoremove: 卸载bar

我尝试在以下位置设置这些选项/etc/apt/apt.conf.d/99-norecommends:

APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";

但是,在上述场景中,这会导致bar在步骤 2 中被卸载。

满足我的目标的 APT 配置选项的正确组合是什么?

更新:我在虚拟机中安装了一个新的 Debian 实例,没有进行任何配置更改,并运行了以下命令:

  1. apt update; apt upgrade: 没有什么是过时的
  2. apt install exim4: 安装了很多东西(对任何错别字表示歉意,我从 VM 中手动转录了这些内容)
    • exim4-base
    • mariadb-common
    • libwrap0
    • libython2.7
    • exim4-daemon-light
    • libltd17
    • libunbound8
    • mailutils-common
    • libgsas17
    • psmisc
    • exim4-config
    • libntlm0
    • guile-2.2-libs
    • mailutils
    • mysql-common
    • libmailutils5
    • exim4
    • libevent-2.1-6
    • libmariadb3
    • libgc1c2
    • libgnutls-dane0
    • libkyotocabinet16v5
    • libfribidi0
    • liblz02-2
  3. apt purge exim4:exim4被卸载了
  4. apt autoremove: 没有卸载任何东西

如何让其他 23 个软件包自动删除?我不想回顾我的 apt 日志来尝试重建完全反转apt install {...}命令需要做的事情,特别是如果有干预安装可能需要一些自动安装的软件包。

顺便说一句,这显然与手册页冲突apt-get:

消除

remove 与 install 相同,只是软件包被删除而不是安装。

清除

purge 与 remove 相同,只是包被删除和清除

我上面的测试表明install和remove/purge不是那里所说的对称。

apt debian
  • 3 个回答
  • 2066 Views
Martin Hope
amdorsey12
Asked: 2020-12-04 16:23:53 +0800 CST

Ubuntu 20.04 apt-get update 找不到发布文件

  • 4

尝试运行sudo apt-get update甚至只是sudo apt update为我产生以下输出:

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                              
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                                                                                          
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                                                        
Hit:5 http://us.archive.ubuntu.com/ubuntu focal-security InRelease                                                                              
Hit:6 http://ppa.launchpad.net/hvr/ghc/ubuntu focal InRelease                                                                                  
Hit:7 https://packages.microsoft.com/ubuntu/19.10/prod eoan InRelease                                                                         
Ign:8 https://anonscm.debian.org/git/collab-maint/pcsc-lite.git focal InRelease                                         
Err:9 https://anonscm.debian.org/git/collab-maint/pcsc-lite.git focal Release
  404  Not Found [IP: 2001:648:2ffc:deb::211:202 443]
Reading package lists... Done
E: The repository 'https://anonscm.debian.org/git/collab-maint/pcsc-lite.git focal Release' does not have a Release file.
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.

我尝试点击https://anonscm.debian.org/git/collab-maint/pcsc-lite.git链接,然后缩短 url 直到 anonscm.debian.org 把我带到这个奇怪的页面,它谈到了某个debian 服务已停止。但是,我有点像 linux 初学者,与其陷入可能会进一步破坏我的环境的兔子洞,我真的很感激一些帮助。任何帮助将不胜感激。

编辑是的。我已连接到互联网。

请注意我的互联网是如何启动的,但更新程序给了我没有连接的消息

第二次编辑:是的。 如您所见,我已连接并且我的 livepatch 已打开

第三次编辑在关闭第二张图片中的设置后,软件更新程序决定运行。这就像我apt-get update在终端中运行一样,不是吗?但是为什么它在终端中不起作用?

软件更新程序似乎在运行?

apt linux
  • 1 个回答
  • 2400 Views
Martin Hope
Lane Ouyang
Asked: 2020-11-21 22:47:19 +0800 CST

如何通过 Ubuntu 中的可执行命令名获取包名

  • 5

我知道在 CentOS/Fedora 中,我可以通过以下命令找到包名:

dnf provides <executable name>

但是Ubuntu中的什么命令会做同样的事情?

apt ubuntu
  • 1 个回答
  • 41 Views
Martin Hope
TechTheGuy
Asked: 2020-11-10 15:04:19 +0800 CST

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

  • 6

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

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 be installed
 linux-headers-4.19.0-kali4-amd64 : Depends: linux-compiler-gcc-8-x86 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

如何解决所有这些混乱?

apt kali-linux
  • 1 个回答
  • 9809 Views
Martin Hope
devp
Asked: 2020-11-02 18:32:49 +0800 CST

在kali linux中安装gdb失败

  • 6
$ sudo apt-get install gdb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gdb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gdb' has no installation candidate

当vscode我配置我的launch和任务json并点击时f5,它给了我一个错误,即未指定 MIDebugger 路径然后转到 bin 库但找不到gdb所以我决定gdb在我的 kali 机器上安装(调试器)得到上述错误。

如何解决?

apt installation
  • 1 个回答
  • 3465 Views
Martin Hope
gronostaj
Asked: 2020-09-30 00:43:07 +0800 CST

KeePassXC 未在 Pop!_OS 18.04 上升级到最新版本

  • 5

我添加了KeePassXC 的官方 PPA并且 apt 知道最新版本,但它没有安装它:

$ apt list -a keepassxc
Listing... Done
keepassxc/bionic,now 2.6.1-1ppa1~bionic1 amd64
keepassxc/bionic 2.5.3-1ppa1~bionic1 amd64 [installed]
keepassxc/bionic 2.3.1+dfsg.1-1 amd64

手动选择版本 2.6.1 可以,但 apt 稍后会将其降级到 2.5.3。

为什么会这样,我怎样才能让它使用最新版本?

apt ubuntu
  • 1 个回答
  • 220 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve