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
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1254519
Accepted
squalou
squalou
Asked: 2020-06-29 03:06:44 +0800 CST2020-06-29 03:06:44 +0800 CST 2020-06-29 03:06:44 +0800 CST

升级到焦点 fossa 20.04 的问题针对“focal.tar.gz.gpg”验证“focal.tar.gz”身份验证失败

  • 772

在 18.04 上运行,尝试时sudo do-release-upgrade -d出现以下错误:

authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
Authentication failed
Authenticating the upgrade failed. There may be a problem with the network or with the server. 

我看过很多帖子 akgin 重新安装sudo apt-get install --reinstall ubuntu-keyring

我做了,没有结果。

我从http://mirrors.linode.com/ubuntu/dists/focal-proposed/main/dist-upgrader-all/20.04.18/手动下载了focal.tar.gz和focal.tar.gz.gpg

我确实运行了 gpg 检查

gpg --receive-keys 871920D1991BC93C
gpg --receive-keys 3B4FE6ACC0B21F32
gpg --verify focal.tar.gz.gpg focal.tar.gz

看起来成功(带有警告,但至少匹配)

gpg: Signature made mer. 08 avril 2020 19:38:12 CEST
gpg:                using RSA key 3B4FE6ACC0B21F32
gpg: Good signature from "Ubuntu Archive Automatic Signing Key (2012) <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 790B C727 7767 219C 42C8  6F93 3B4F E6AC C0B2 1F32
gpg: Signature made mer. 08 avril 2020 19:38:12 CEST
gpg:                using RSA key 871920D1991BC93C
gpg: Good signature from "Ubuntu Archive Automatic Signing Key (2018) <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C

不知道我可以尝试使升级接受文件,以及继续进行的过程。

我不希望遵循这个建议:手动更改源定义,https://stackoverflow.com/questions/62388015/authenticating-the-upgrade-failed-there-may-be-a-problem-with-the-network -或-wi

我正在运行这台 ubuntu 机器作为“任何用户的可维护性测试”,所以我在这里的挑战是不要调整。为此,我的主电脑运行 arch ;)

所以,我正在寻找一种尽可能容易解释和重现的方法来解决这个问题。

谢谢 !

笔记

我可以手动修改 apt-key

gpg --receive-keys 3B4FE6ACC0B21F32
gpg --receive-keys 871920D1991BC93C
gpg --export  790BC7277767219C42C86F933B4FE6ACC0B21F32 > 1.gpg
gpg --export  F6ECB3762474EDA9D21B7022871920D1991BC93C > 2.gpg
sudo apt-key add 1.gpg
sudo apt-key add 2.gpg

但这不是我应该做的事情……是吗?即便如此,它后来还是失败了

Updating repository information
Hit http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive focal InRelease                                                                                                                                 
Hit http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive focal-security InRelease                                                                                                                        
Hit http://archive.canonical.com/ubuntu focal InRelease                                                                                                                                                           
Fetched 0 B in 0s (0 B/s)   

(appstreamcli:1444): GLib-CRITICAL **: 19:08:37.593: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed

(appstreamcli:1444): GLib-CRITICAL **: 19:08:37.593: g_variant_new_variant: assertion 'value != NULL' failed

(appstreamcli:1444): GLib-ERROR **: 19:08:37.594: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap (core dumped)

我当然可以等待 20.04.1 发布,但是……这是一种奇怪的行为。

看起来没有找到 repo 信息,Fetched 0 B in 0s (0 B/s) 但是当我手动浏览 repo 时,东西就在那里。

upgrade 20.04
  • 5 5 个回答
  • 10571 Views

5 个回答

  • Voted
  1. Best Answer
    Calmarius
    2020-10-31T05:59:59+08:002020-10-31T05:59:59+08:00

    我尝试从 18.04 升级到 20.04 并得到了同样的错误。

    问题是“仿生更新”频道在我/etc/apt/sources.list只有“仿生”和“仿生安全”时没有激活。

    在sources.list中添加一行后:

    deb http://hu.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    

    sudo apt update && sudo apt dist-upgrade安装了大约 300 多个软件包,然后就可以do-release-upgrade工作了。

    • 20
  2. Anuga
    2021-01-27T05:58:24+08:002021-01-27T05:58:24+08:00

    我们今天在几台服务器上遇到了这个错误消息,它们都安装了各种不同的包和自定义源列表。

    在测试了不同的方法(在此处和其他线程中列出)之后,对我们所有服务器都有效的方法是手动升级到最新版本的软件包,然后删除源列表,然后执行发布升级。

    我强烈建议在删除文件之前备份源文件夹。

    sudo apt update
    sudo apt upgrade -y
    sudo rm /etc/apt/sources.list.d/*
    sudo do-release-upgrade
    
    • 2
  3. squalou
    2020-07-04T13:18:41+08:002020-07-04T13:18:41+08:00

    我现在得到这个:

    (appstreamcli:15661): GLib-CRITICAL **: 10:32:27.652: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed
    
    (appstreamcli:15661): GLib-CRITICAL **: 10:32:27.652: g_variant_new_variant: assertion 'value != NULL' failed
    
    (appstreamcli:15661): GLib-ERROR **: 10:32:27.652: g_variant_new_parsed: 11-13:invalid GVariant format string
    Trace/breakpoint trap (core dumped)
    Hit http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                                                                              
    Fetched 0 B in 0s (0 B/s)                                                                                                                                                                                         
    
    

    ... :-(

    我想知道它是如何进入那种状态的,但我最终删除了 appstream apt-get remove appstream,这应该抱怨很多,但没有:删除得很好。去想知道。升级过程正在进行中。手指交叉(并完成备份)

    ...

    最终在更新期间完全崩溃。

    从strat重新安装。

    • 1
  4. rapto
    2022-02-15T23:19:34+08:002022-02-15T23:19:34+08:00

    就我而言,有一个外部架构以某种方式阻止了更新:

    marcos@nubes:~$ dpkg --print-foreign-architectures
    i386
    marcos@nubes:~$ dpkg -l | grep i386  # No packages
    marcos@nubes:~$ sudo dpkg --remove-architecture i386
    marcos@nubes:~$ sudo apt update
    marcos@nubes:~$ sudo do-release-upgrade 
    [success]
    
    • 0
  5. Eichkatzerl
    2022-05-26T12:39:15+08:002022-05-26T12:39:15+08:00

    我在尝试从 Bionic(到 Focal)进行 do-release-upgrade 时遇到了完全相同的错误消息。

    就我而言,它是通过绕过我通常使用的代理(apt-cacher-ng)来“修复”的。缓存中的陈旧/错误文件可能与实际存储库中的文件不匹配。

    • 0

相关问题

  • 在自定义安装以维护升级路径时,应遵循哪些准则?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

  • 从 8.04 LTS 升级到 10.04 LTS 的体验?

  • 分销升级的合理途径

  • 在不使用标准升级系统的情况下升级有哪些替代方案?

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve