尝试从 20.04 升级到 22.04 时,PPA 不断返回

尝试从 20.04 升级到 22.04 时,PPA 不断返回

我尝试使用 ppa-purge 来摆脱它,据说成功了,在 GUI 中的软件和更新/其他软件选项卡中将其删除,但是当我尝试升级时,它说:

计算升级时出现无法解决的问题。

这可能是由于以下原因造成的:

  • 非 Ubuntu 提供的非官方软件包请使用 ppa-purge 包中的工具“ppa-purge”从 Launchpad PPA 中删除软件,然后再次尝试升级。

如果以上都不适用,请在终端中使用命令“ubuntu-bug ubuntu-release-upgrader-core”报告此错误。如果您想自己调查此问题,“/var/log/dist-upgrade”中的日志文件将包含有关升级的详细信息。具体来说,请查看“main.log”和“apt.log”。

然后当我检查软件和更新 GUI 时,它又回来了。我该如何解决这个问题?

运行 apt-get update 时的输出是:

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease                              
Hit:3 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease                            
Hit:5 https://deb.nodesource.com/node_17.x focal InRelease                                     
Hit:4 https://cli-assets.heroku.com/apt ./ InRelease                                           
Ign:6 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease                      
Hit:7 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release      
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done

尝试注释掉 /etc/apt 中包含 sources.list 的每个文件

现在我只收到一个常规错误,没有指示如何修复。

无法计算升级 计算升级时出现无法解决的问题。如果上述情况均不适用,请使用终端中的命令“ubuntu-bug ubuntu-release-upgrader-core”报告此错误。如果您想自行调查此问题,则“/var/log/dist-upgrade”中的日志文件将包含有关升级的详细信息。具体来说,请查看“main.log”和“apt.log”。

错误报告已提交:https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1990163

运行“sudo apt upgrade”的输出:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gyp javascript-common libc-ares2 libfdk-aac1 libfwupdplugin1 libjs-inherits
  libjs-is-typedarray libjs-psl libjs-typedarray-to-buffer libpython2-stdlib
  libpython2.7-minimal libpython2.7-stdlib libssl-dev libuv1-dev
  libxcb-composite0 node-abbrev node-ajv node-ansi node-ansi-align
  node-ansi-regex node-ansi-styles node-ansistyles node-aproba node-archy
  node-are-we-there-yet node-asap node-asn1 node-assert-plus node-asynckit
  node-aws-sign2 node-aws4 node-balanced-match node-bcrypt-pbkdf node-bl
  node-bluebird node-boxen node-brace-expansion node-builtins node-cacache
  node-call-limit node-camelcase node-caseless node-chalk node-chownr
  node-ci-info node-cli-boxes node-cliui node-clone node-co node-color-convert
  node-color-name node-colors node-columnify node-combined-stream
  node-concat-map node-concat-stream node-config-chain node-configstore
  node-console-control-strings node-copy-concurrently node-core-util-is
  node-cross-spawn node-crypto-random-string node-cyclist node-dashdash
  node-debug node-decamelize node-decompress-response node-deep-extend
  node-defaults node-define-properties node-delayed-stream node-delegates
  node-detect-indent node-detect-newline node-dot-prop node-duplexer3
  node-duplexify node-ecc-jsbn node-editor node-encoding node-end-of-stream
  node-err-code node-errno node-es6-promise node-escape-string-regexp
  node-execa node-extend node-extsprintf node-fast-deep-equal node-find-up
  node-flush-write-stream node-forever-agent node-form-data node-from2
  node-fs-vacuum node-fs-write-stream-atomic node-fs.realpath
  node-function-bind node-gauge node-genfun node-get-caller-file
  node-get-stream node-getpass node-glob node-got node-graceful-fs
  node-har-schema node-har-validator node-has-flag node-has-symbol-support-x
  node-has-to-string-tag-x node-has-unicode node-hosted-git-info
  node-http-signature node-iconv-lite node-iferr node-import-lazy
  node-imurmurhash node-inflight node-inherits node-ini node-invert-kv node-ip
  node-ip-regex node-is-npm node-is-obj node-is-object node-is-path-inside
  node-is-plain-obj node-is-retry-allowed node-is-stream node-is-typedarray
  node-isarray node-isexe node-isstream node-isurl node-jsbn
  node-json-parse-better-errors node-json-schema node-json-schema-traverse
  node-json-stable-stringify node-json-stringify-safe node-jsonify
  node-jsonparse node-jsonstream node-jsprim node-latest-version
  node-lazy-property node-lcid node-libnpx node-locate-path node-lockfile
  node-lodash node-lodash-packages node-lowercase-keys node-lru-cache
  node-make-dir node-mem node-mime node-mime-types node-mimic-fn
  node-mimic-response node-minimatch node-minimist node-mississippi
  node-mkdirp node-move-concurrently node-ms node-mute-stream node-nopt
  node-normalize-package-data node-npm-bundled node-npm-package-arg
  node-npm-run-path node-npmlog node-number-is-nan node-oauth-sign
  node-object-assign node-once node-opener node-os-locale node-os-tmpdir
  node-osenv node-p-cancelable node-p-finally node-p-is-promise node-p-limit
  node-p-locate node-p-timeout node-package-json node-parallel-transform
  node-path-exists node-path-is-absolute node-path-is-inside
  node-performance-now node-pify node-prepend-http node-process-nextick-args
  node-promise-inflight node-promise-retry node-promzard node-proto-list
  node-prr node-pseudomap node-psl node-pump node-pumpify node-punycode
  node-qs node-qw node-rc node-read node-read-package-json
  node-readable-stream node-registry-auth-token node-registry-url node-request
  node-require-directory node-require-main-filename node-resolve
  node-resolve-from node-retry node-rimraf node-run-queue node-safe-buffer
  node-semver node-semver-diff node-set-blocking node-sha node-shebang-command
  node-shebang-regex node-signal-exit node-slash node-slide node-sorted-object
  node-spdx-correct node-spdx-exceptions node-spdx-expression-parse
  node-spdx-license-ids node-sshpk node-ssri node-stream-each
  node-stream-iterate node-stream-shift node-strict-uri-encode
  node-string-decoder node-string-width node-strip-ansi node-strip-eof
  node-strip-json-comments node-supports-color node-tar node-term-size
  node-text-table node-through node-through2 node-timed-out node-tough-cookie
  node-tunnel-agent node-tweetnacl node-typedarray node-typedarray-to-buffer
  node-uid-number node-unique-filename node-unique-string node-unpipe
  node-uri-js node-url-parse-lax node-url-to-options node-util-deprecate
  node-uuid node-validate-npm-package-license node-validate-npm-package-name
  node-verror node-wcwidth.js node-which node-which-module node-wide-align
  node-widest-line node-wrap-ansi node-wrappy node-write-file-atomic
  node-xdg-basedir node-xtend node-y18n node-yallist node-yargs
  node-yargs-parser python-pkg-resources python2 python2-minimal python2.7
  python2.7-minimal
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

答案1

运行sudo apt autoremove似乎已经解决了这个问题。

相关内容