依赖问题:内核包(linux-image-unsigned)具有未满足的依赖关系,导致其保持未配置状态。
dpkg 错误:由于这些未解决的依赖关系,包管理器(dpkg)无法配置内核。
错误损坏的系统状态:因此,你的包管理系统处于损坏状态,无法进行进一步的更新或安装
我尝试安装另一个版本的软件包并更新/升级系统,希望解决问题,但未满足的依赖关系问题仍然存在。
依赖问题:内核包(linux-image-unsigned)具有未满足的依赖关系,导致其保持未配置状态。
dpkg 错误:由于这些未解决的依赖关系,包管理器(dpkg)无法配置内核。
错误损坏的系统状态:因此,你的包管理系统处于损坏状态,无法进行进一步的更新或安装
我尝试安装另一个版本的软件包并更新/升级系统,希望解决问题,但未满足的依赖关系问题仍然存在。
我目前正在将笔记本电脑从 22.04 升级到 24.04.1 LTS,遇到了多个问题,但首先发生的情况如下
我尝试使用软件更新程序更新 Ubuntu,但它给出了以下错误消息:
"Failed to download repository information, check your internet connection"
然后,我单击“确定”后,它显示了以下消息:
"The software on this computer is up to date."
"However, Ubuntu 24.04.1 LTS is now available (you have 22.04)"
然后它向我展示了发行说明,我再次单击“升级”,出现了“发行版升级”窗口,在它向我显示此消息之前,它已经顺利通过了“设置新软件频道”部分
W:Updating from such a repository can't be done securely, and is therefore disabled by default.,
W:See apt-secure(8) manpage for repository creation and user configuration details.,
W:An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.protonvpn.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8DD48989F43719CA,
E:The repository 'https://example.com/apt stable Release' does not have a Release file.
我尝试过处理无公钥错误和 example.com 错误,所以我将分别讨论我为它们做了什么
对于公钥错误,我尝试按照此“https://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey”帖子中的最佳答案进行操作,这使我在终端中输入了以下内容
sudo mkdir -m 0755 -p /etc/apt/keyrings/
curl -fsSL https://example.com/EXAMPLE.gpg |
sudo gpg --dearmor -o /etc/apt/keyrings/EXAMPLE.gpg
echo "deb [signed-by=/etc/apt/keyrings/EXAMPLE.gpg] https://example.com/apt stable main" |
sudo tee /etc/apt/sources.list.d/EXAMPLE.list > /dev/null
我很确定这就是导致 example.com 没有 Release 文件的问题的原因,但我将继续
之后我又尝试彻底删除 proton VPN,结果还是不行,于是我输入了他们网站上的这些命令
sudo apt autoremove proton-vpn-gnome-desktop && sudo apt purge protonvpn-stable-release
之后我尝试按照其说明删除旧版本
sudo apt-get autoremove protonvpn
rm -rf ~/.cache/protonvpn
rm -rf ~/.config/protonvpn
据我所知,已成功删除 proton vpn,但尝试更新时仍然出现无公钥错误(遗憾的是我没有最初执行此操作时的输出(我关闭了终端窗口)但这是我再次执行此操作时的输出)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'protonvpn' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 3 not to upgrade.
至于错误,我相信我是在按照这个[解决方案](如何修复 GPG 错误“NO_PUBKEY”?发布说明 )"E:The repository 'https://example.com/apt stable Release' does not have a Release file."
后意外创建的。
所以我的问题是如何解决这个问题?我假设我必须删除 example.com 和 proton vpn 的一些文件,但我不知道该怎么做
(此外,我不希望进行全新安装,但如果您认为我应该这样做,我可能会这样做)
我刚刚遇到了一件我不明白的事情,我担心它可能与黑客或恶意软件有关……我将计算机置于挂起模式,但无法唤醒它,屏幕重新打开但仍然黑屏。我按住电源按钮强制关机。再次开机后,它启动到 BusyBox 控制台。我再次重新启动,它按预期启动到 Ubuntu。我最近安装了 Ubuntu 24.10,但尚未明确安装 BusyBox。我不知道 BusyBox 是如何安装的。所以有几个问题:
我正在尝试安装 Toptal 提供的顶级跟踪器。我收到此错误
*sudo dpkg -i ~/Downloads/toptracker_1.6.2-6524_amd64.deb
[sudo] password for user:
Selecting previously unselected package toptracker.
(Reading database ... 204997 files and directories currently installed.)
Preparing to unpack .../toptracker_1.6.2-6524_amd64.deb ...
Unpacking toptracker (1.6.2-6524) ...
dpkg: dependency problems prevent configuration of toptracker:
toptracker depends on libappindicator1; however:
Package libappindicator1 is not installed.
dpkg: error processing package toptracker (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Errors were encountered while processing:
toptracker*
when I tryed to install libappindicator1 then getting
sudo apt-get install libappindicator1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libappindicator1 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 'libappindicator1' has no installation candidate
谁能告诉我如何解决这个问题?
从 ubuntu 24.04. 升级到 24.04.1 破坏了我的 RStudio 安装(升级总共破坏了 11 个软件包)。我删除了 RStudio,并将其升级到最新版本(2024.04.2-764-amd64.deb),但错误仍然存在。R(v4.3.3)本身运行顺畅。
这是我得到的错误。我甚至不知道它指的是什么——因此,不知道从哪里开始查找。
laptop@user:~$ rstudio
[48623:0903/170856.125096:FATAL:credentials.cc(127)] Check failed: . : Permission denied (13)
Trace/breakpoint trap (core dumped)
谢谢你!
我想在我的 ubuntu 虚拟盒中卸载一个名为 Knockpy 的软件包。当我尝试卸载它时,它显示如下
sudo apt-get remove knockpy
[sudo] password for david:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'knockpy' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
但如果我去终端并检查已安装的版本,它就在那里可见......
david@david:~/Desktop$ knockpy --version
KNOCKPY 7.0.1
david@david:~/Desktop$
avid@david:~/Desktop$ knockpy
usage: KNOCKPY [-h] [-d DOMAIN] [-f FILE] [-v] [--dns DNS]
[--useragent USERAGENT] [--timeout TIMEOUT] [--threads THREADS]
[--recon] [--bruteforce] [--wordlist WORDLIST] [--wildcard]
[--json] [--save FOLDER] [--report REPORT]
knockpy v.7.0.1 - Subdomain Scan
https://github.com/guelfoweb/knock
options:
-h, --help show this help message and exit
-d DOMAIN, --domain DOMAIN
domain to analyze
-f FILE, --file FILE domain list from file path
-v, --version show program's version number and exit
--dns DNS custom dns
--useragent USERAGENT
custom useragent
--timeout TIMEOUT custom timeout
--threads THREADS custom threads
--recon subdomain reconnaissance
--bruteforce subdomain bruteforce
--wordlist WORDLIST wordlist file to import
--bruteforce option required
--wildcard test wildcard and exit
--json shows output in json format
--save FOLDER folder to save report
--report REPORT shows saved report
我通过以下命令安装了这个knockpy工具
git clone https://github.com/guelfoweb/knock.git
cd knock
pipx install git+https://github.com/guelfoweb/knock.git
我再次检查包裹是否仍然可见
david@david:~/Desktop$ apt show knockpy
Package: knockpy
Version: 7.0.0-2
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Gianfranco Costamagna <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 119 kB
Depends: python3-bs4 (>= 4.12.3), python3-dnspython, python3-openssl, python3-requests, python3-tqdm, python3:any
Homepage: https://github.com/guelfoweb/knock
Download-Size: 35.4 kB
APT-Sources: http://in.archive.ubuntu.com/ubuntu noble/universe amd64 Packages
Description: Python3 tool designed to enumerate subdomains on a target domain
Knockpy is a Python tool designed to enumerate subdomains on a target domain
through a wordlist.
david@david:~/Desktop$ pipx uninstall knockpy Nothing to uninstall for knockpy 😴 ⚠️ Note: '/home/david/.local/bin/knockpy' still exists on your system and is on your PATH david@david:~/Desktop$
someone please look into these issue. what went wrong ?
如何更新到最新版本,同时保持我的 Ubuntu 版本不变?
上下文:我正在尝试查找一个错误,该错误仅出现在 ThinkPad 上两个看似相同的 Ubuntu 安装中的一个上。我看到的系统之间的第一个区别是,错误出现在正在运行的设备上Ubuntu 22.04 LTS
,而不是Ubuntu 22.04.4 LTS
报告的正在运行的设备上cat /etc/lsb-release
。
apt update
、apt upgrade
、 。重启后它不会增加到。apt dist-upgrade
22.04.4
sudo do-release-upgrade
;目前没有可用的 LTS 开发版本,并且如果可用则会更新到24.04.1
,而我并不需要。/etc/apt/sources.list
22.04
和机器之间似乎是相同的22.04.4
,不同之处在于后者顶部的注释表明它是通过22.4.04
cdrom 安装的。uname -r
机器上22.04
显示5.15.0-118-generic
;22.04.4
机器处于6.5.0-44-generic
,确认是的,22.04
机器尚未完全升级。是否有更新路径可以将22.04
系统转变为其他22.04.4
系统?或者第三点发布号在这里没有多大意义,或者只是更新过程忘记更改它?
24.04.1
(我不想要),要么什么都不做(我现在得到的行为)。这个相关线程也没有解决我的问题。apt full-upgrade
应该可以工作,但对我来说似乎不起作用?我的一个 snap 包在 Ubuntu 24.04 Desktop 上无法启动。删除该 snap 包并重新安装无效。经过一番快速研究后,我做出了一个愚蠢的决定:使用snapd
( apt-get
)删除它sudo apt-get remove snapd
。
我尝试了 3 天再次安装它,但没有任何结果。我删除了与 snap 相关的所有数据(备份了我的目录~/snap
)。这是我收到的错误消息:
$ sudo apt-get install snap snapd -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
snap snapd
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 snapd amd64 2.63+24.04 [28.1 MB]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 snap amd64 2013-11-29-11 [377 kB]
Fetched 28.4 MB in 15s (1,896 kB/s)
dpkg: warning: files list file for package 'libsnapd-glib-2-1:amd64' missing; assuming package has no files currently installed
(Reading database ... 355786 files and directories currently installed.)
Preparing to unpack .../snapd_2.63+24.04_amd64.deb ...
Unpacking snapd (2.63+24.04) ...
dpkg: error processing archive /var/cache/apt/archives/snapd_2.63+24.04_amd64.deb (--unpack):
error setting timestamps of '/usr/lib/snapd/snap-update-ns.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package snap.
Preparing to unpack .../snap_2013-11-29-11_amd64.deb ...
Unpacking snap (2013-11-29-11) ...
Errors were encountered while processing:
/var/cache/apt/archives/snapd_2.63+24.04_amd64.deb
[ Rootkit Hunter version 1.4.6 ]
File updated: searched for 181 files, found 144
E: Sub-process /usr/bin/dpkg returned an error code (1)
我清除了以下目录:
~/snap
/var/lib/snap
/var/snap
/var/lib/dpkg/info/libsnapd-glib-2-1:amd64*
sudo rm /var/cache/apt/archives/snapd_2.63+24.04_amd64.deb
sudo apt remove --purge snapd
sudo apt purge snapd snap-confine
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get --fix-broken install
sudo dpkg --configure -a
sudo apt install -f
sudo nano /etc/apt/preferences.d/nosnap.pref <- not there
然后重新启动系统并重新开始:
sudo apt-get install snapd
我不断收到有关时间戳的相同错误snap-update-ns.dpkg-new
,但该文件不存在。
有人能帮帮我吗?我在网上找不到解决方案。
我正在尝试查找libnss_mdns4_minimal.so.2
使用安装的软件包。当文件路径以 开头时,dpkg -S
输出会显示 ,但当文件路径以 开头时会成功。no path found
/usr/lib/
/lib/
我正在使用 Ubuntu 22.04 Server。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
为了找到文件的位置,我运行了以下命令:
$ sudo updatedb
$ locate mdns4_minimal
/usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
接下来,我使用dpkg -S
查找安装了 的包libnss_mdns4_minimal.so.2
。输出显示:no path found matching pattern
。
$ dpkg -S /usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
dpkg-query: no path found matching pattern /usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
但是,下面的操作成功了:
$ dpkg -S /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
libnss-mdns:amd64: /lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
我注意到这/lib
是一个符号链接/usr/lib
:
$ ls -l /lib
lrwxrwxrwx 1 root root 7 Mar 19 2023 /lib -> usr/lib
我不明白为什么no path was found
使用完整路径时/usr/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
,使用时却成功/lib/x86_64-linux-gnu/libnss_mdns4_minimal.so.2
。无论我通过直接路径还是通过符号链接引用,文件不是都一样吗?
有人能解释一下吗?