“Snap Store 的待更新”是怎么回事?
ubuntu
最近,打开 Firefox 时出现此警告:
等待更新“firefox”快照
关闭应用程序以避免中断
这是什么意思?我该怎么办?这是一个错误吗?
Ubuntu 22.04 有一个错误,即我们无法在任何平台上共享我们的屏幕。
sudo do-release-upgrade -cd
返回
Checking for a new Ubuntu release
New release '22.04' available.
Run 'do-release-upgrade' to upgrade to it.
然后
sudo do-release-upgrade
返回
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS development release
set Prompt=normal in /etc/update-manager/release-upgrades.
我认为错误是:
22.04 未标记为 LTS。因此do-release-upgrade
不适用于从 20.04 LTS 升级到 22.04 LTS。
任何解决方法除了set Prompt=normal in /etc/update-manager/release-upgrades.
?
Ubuntu 22.04 在 Digital Ocean LAMP 堆栈液滴上更新后,我收到 3 条警告。
W: http://repo.mysql.com/apt/ubuntu/dists/bionic/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://pkg.cloudflare.com/dists/trusty/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
如何将钥匙移动到正确的位置并删除旧钥匙?
编辑
sudo apt-key 列表
pub rsa2048 2016-02-17 [SC]
9FE3 B226 BD77 5196 D8C2 E599 DE88 104A A4C6 383F
uid [ unknown] DigitalOcean Insights Engineering <[email protected]>
sub rsa2048 2016-02-17 [E]
pub rsa2048 2015-01-28 [SC]
FBA8 C0EE 6361 7C5E ED69 5C43 254B 391D 8CAC CBF8
uid [ unknown] CloudFlare Software Packaging <[email protected]>
pub dsa1024 2003-02-03 [SCA] [expired: 2022-02-16]
A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5
uid [ expired] MySQL Release Engineering <[email protected]>
pub rsa4096 2021-12-14 [SC] [expires: 2023-12-14]
859B E8D7 C586 F538 430B 19C2 467B 942D 3A79 BD29
uid [ unknown] MySQL Release Engineering <[email protected]>
sub rsa4096 2021-12-14 [E] [expires: 2023-12-14]
/etc/apt/trusted.gpg.d/certbot_ubuntu_certbot.gpg
-------------------------------------------------
pub rsa4096 2016-11-02 [SC]
7BF5 7606 6ADA 6572 8FC7 E70A 8C47 BE8E 75BC A694
uid [ unknown] Launchpad PPA for certbot
/etc/apt/trusted.gpg.d/ondrej-ubuntu-apache2.gpg
------------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ondrej_ubuntu_php.gpg
--------------------------------------------
pub rsa1024 2009-01-26 [SC]
14AA 40EC 0831 7567 56D7 F66C 4F4E A0AA E526 7A6C
uid [ unknown] Launchpad PPA for Ondřej Surý
/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub rsa4096 2012-05-11 [SC]
8439 38DF 228D 22F7 B374 2BC0 D94A A3F0 EFE2 1092
uid [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>
/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub rsa4096 2018-09-17 [SC]
F6EC B376 2474 EDA9 D21B 7022 8719 20D1 991B C93C
uid [ unknown] Ubuntu Archive Automatic Signing Key (2018) <[email protected]>
ls -l /etc/apt/sources.list.d
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list
-rw-r--r-- 1 root root 276 Apr 8 15:51 certbot-ubuntu-certbot-xenial.list.distUpgrade
-rw-r--r-- 1 root root 274 Mar 13 2020 certbot-ubuntu-certbot-xenial.list.save
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list
-rw-r--r-- 1 root root 43 Apr 8 15:51 cloudflare-main.list.distUpgrade
-rw-r--r-- 1 root root 43 Mar 13 2020 cloudflare-main.list.save
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list
-rw-r--r-- 1 root root 67 Apr 8 15:51 digitalocean-agent.list.distUpgrade
-rw-r--r-- 1 root root 67 Mar 13 2020 digitalocean-agent.list.save
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list
-rw-r--r-- 1 root root 501 Apr 8 15:51 mysql.list.distUpgrade
-rw-r--r-- 1 root root 137 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list
-rw-r--r-- 1 root root 135 Apr 8 15:51 ondrej-ubuntu-apache2-hirsute.list.distUpgrade
-rw-r--r-- 1 root root 123 Apr 8 15:51 ondrej-ubuntu-php-xenial.list
-rw-r--r-- 1 root root 124 Apr 8 15:51 ondrej-ubuntu-php-xenial.list.distUpgrade
-rw-r--r-- 1 root root 125 Apr 8 19:11 signal-xenial.list
apt upgrade
:
$ sudo apt-get full-upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
libpython3.10-dev : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10 : Depends: libpython3.10-stdlib (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
python3.10-minimal : Depends: libpython3.10-minimal (= 3.10.4-1+focal2) but 3.10.4-1+focal1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt --fix-broken install
:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libpython3.10-minimal libpython3.10-stdlib
The following packages will be upgraded:
libpython3.10-minimal libpython3.10-stdlib
2 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
9 not fully installed or removed.
Need to get 0 B/2,566 kB of archives.
After this operation, 68.6 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 279178 files and directories currently installed.)
Preparing to unpack .../libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.10/_sysconfigdata__linux_x86_64-linux-gnu.py', which is also in package libpython3.10-minimal:amd64 3.10.4-1+fo
cal1
Preparing to unpack .../libpython3.10-minimal_3.10.4-1+focal2_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-minimal_3.10.4-1+focal2_amd64.deb (--unpack):
trying to overwrite '/usr/lib/python3.10/typing.py', which is also in package libpython3.10-stdlib:amd64 3.10.4-1+focal1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb
/var/cache/apt/archives/libpython3.10-minimal_3.10.4-1+focal2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
试图删除已安装python3.10
的软件包,但它会导致错误 Unmet dependencies
此错误消息是什么意思,有没有办法解决它?
最近我在运行时注意到一些问题apt
,系统会警告我密钥环已弃用:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
8 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://packages.microsoft.com/repos/edge/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: https://download.sublimetext.com/apt/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
这不会阻止我执行更新,但我更希望在更新系统时看不到这一点。我们应该如何存储受信任的 GPG 密钥?
我正在运行 Ubuntu 20.04,我不小心删除了 EFI 分区(该死的 GParted!)系统仍在运行。我可以在 now UNUSED 区域创建一个新分区,设置 EFI 标志和引导标志,然后运行 update-grub 吗?update-grub 会重新填充 EFI 分区吗?我可以从另一个 Ubuntu 安装中 DD EFI 分区吗?
快速回复, 非常感谢!
我在 Windows 11 上使用 WSL2。我想systemctl
在 Ubuntu 20.04 中运行该命令,但它给了我以下错误:
System has not been booted with systemd as init system (PID 1).
Can't operate. Failed to connect to bus: Host is down
我该如何解决?
今天我做了sudo apt upgrade
,然后,作为一个双重检查,做了sudo apt update
。后者终止于:
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Get:6 https://repo.skype.com/deb stable InRelease [4,502 B]
Err:6 https://repo.skype.com/deb stable InRelease
The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
Fetched 4,502 B in 5s (894 B/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. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
为了解决这个问题,我打了电话sudo apt remove skypeforlinux
,然后又做了一个sudo apt update
. 更新再次以关于无效签名的消息终止。
如何清除此无效签名问题?
$ uname -mrs
Linux 5.4.0-77-generic x86_64
$ lsb_release -d
Description: Ubuntu 20.04.2 LTS
如何将 Firefox 89 设计恢复为旧设计?
特别是标签设计。我不能(很容易地)知道打开了哪个标签。
我在菜单中找不到任何东西。
我在 Ubuntu 21.04 (Hirsute Hippo) 上运行 Firefox 89。
已经使用 Ubuntu 18.04 几年了,并且读到 Python 2 已从 Ubuntu 20.04 中删除,我期待使用命令python
orpip
而不是python3
or pip3
。所以今天我第一次尝试了Ubuntu 20.04,发现:
$ python --version
Command 'python' not found
$ python3 --version
Python 3.8.5
我很惊讶,在进一步调查后发现了以下关于包裹的信息python-is-python3
:
https://packages.ubuntu.com/focal/python-is-python3
https://launchpad.net/ubuntu/focal/+package/python-is-python3
这 3 个链接的中间是最具描述性的,但没有一个特别清楚如果要在 Ubuntu 20.04 安装上运行是什么python-is-python3
/做什么以及后果的全部范围。sudo apt-get install python-is-python3
以下是我的一些问题python-is-python3
:
是
python-is-python3
Ubuntu/Canonical 专有的吗?如果是这样,其他 Linux 发行版python-is-python3
是否也使用或其他一些发行版是否有类似的等价物?我收集如果我
python-is-python3
要从命令提示符运行,那么我可以使用命令python
而不是python3
. 首先有人可以确认这一点,其次,是否也适用于pip
,即pip
代替pip3
?上面的 launchpad.net 链接提到了符号链接的创建。
python-is-python3
真的只是创建一个符号链接吗?为这样一个简单的目的引入一个包似乎很奇怪。此外,如果此软件包随后被卸载(i.e. sudo apt --purge remove python-is-python3
),这是否会删除符号链接?现在还有常用的 Python 2 包吗?我想不出任何临时的。
有没有人因为事先没有意识到的原因而跑了
python-is-python3
,后来又后悔了?似乎运行的好处
python-is-python3
是不必在 Python 命令的末尾添加 3,但缺点是你会有一个非标准的 Ubuntu 设置,这是对python-is-python3
优点/缺点的公平总结吗?
我正在使用 Ubuntu 20.04,需要帮助:
“需要身份验证”窗口卡住了,我无法关闭它:(
有没有比重启更简单的方法来删除它?
在新的 ubuntu 20.10 虚拟机上为本地存储库设置密钥,我收到一条消息,提示 apt-key add 已弃用,我应该阅读apt-key
(8) 手册页。( apt-key
8) 手册页是串在一起的单词的集合,但如果它包含信息,我就无法将其剔除。谁能告诉我,我应该在终端上输入什么,而不是:
apt-key add name-of-file
在向我鸣喇叭后,该命令显然仍然有效,所以我能够继续,但想知道我将来需要做什么。