Archlinux - 通过 yay 升级时找不到软件包

Archlinux - 通过 yay 升级时找不到软件包

当尝试更新系统时,我遇到一个特殊的问题,即yay确定需要nodejs-lts-gallium通过直接升级?或间接(最有可能)依赖:

$ yay -Syu
(...)
 -> No AUR package found for nodejs-lts-gallium
(...)
 -> could not find all required packages: nodejs-lts-gallium

看来这个包已经从 中删除了aur。我无法找出如何摆脱此消息,因为我似乎找不到哪个包依赖于此包:

$ pacman -Q | grep nodejs

并查看paclog这个包,我发现它已被删除:

paclog --package=nodejs-lts-gallium
[2022-03-23T20:14:55-0400] [ALPM] installed nodejs-lts-gallium (16.14.2-1)
[2022-04-21T09:48:30-0400] [ALPM] upgraded nodejs-lts-gallium (16.14.2-1 -> 16.14.2-2)
[2022-04-29T17:01:11-0400] [ALPM] upgraded nodejs-lts-gallium (16.14.2-2 -> 16.15.0-1)
[2022-06-08T00:04:32-0400] [ALPM] upgraded nodejs-lts-gallium (16.15.0-1 -> 16.15.1-1)
[2022-07-12T16:17:11-0400] [ALPM] upgraded nodejs-lts-gallium (16.15.1-1 -> 16.16.0-1)
[2022-10-23T14:10:19-0400] [ALPM] upgraded nodejs-lts-gallium (16.16.0-1 -> 16.16.0-2)
[2022-11-13T21:42:27-0500] [ALPM] upgraded nodejs-lts-gallium (16.16.0-2 -> 16.18.0-1)
[2022-12-29T21:56:27-0500] [ALPM] upgraded nodejs-lts-gallium (16.18.0-1 -> 16.19.0-1)
[2023-03-01T09:45:37-0500] [ALPM] upgraded nodejs-lts-gallium (16.19.0-1 -> 16.19.1-1)
[2023-04-01T15:22:45-0400] [ALPM] upgraded nodejs-lts-gallium (16.19.1-1 -> 16.20.0-1)
[2023-05-16T19:05:15-0400] [ALPM] removed nodejs-lts-gallium (16.20.0-1)

我的问题是:

  • yay收到时正在寻找什么 -> No AUR package found for nodejs-lts-gallium?是否有命令可以准确获取该信息?
  • 如何解决此错误

完整日志yay

$ yay -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
:: Searching AUR for updates...
 -> No AUR package found for nodejs-lts-gallium
:: Searching databases for updates...
:: 9 dependencies will also be installed for this operation.
   extra/doxygen            -> 1.10.0-3
   (make dependency of alsaplayer)
   extra/gendesk            -> 1.0.9-3
   (make dependency of dropbox)
   extra/lhasa              -> 0.3.1-3
   (make dependency of wd719x-firmware)
   extra/libmikmod          -> 3.3.11.1-6
   (make dependency of alsaplayer)
   extra/npm                -> 10.5.2-1
   (make dependency of lens)
   extra/python-build       -> 1.2.1-1
   (make dependency of python-nvidia-ml-py)
   extra/python-installer   -> 0.7.0-4
   (make dependency of python-nvidia-ml-py)
   extra/sassc              -> 3.6.2-4
   (make dependency of adw-gtk3)
   aur/python-pynvml        -> 11.5.0-1

:: 22 packages to upgrade/install.
22  extra/docker-buildx                     0.13.1-1       -> 0.14.0-1
21  extra/libmpeg2                          0.5.1-8        -> 0.5.1-9
20  aur/adw-gtk3                            5.0-1          -> 5.3-2
19  aur/aic94xx-firmware                    30-9           -> 30-10
18  aur/alsaplayer                          0.99.81-9      -> 0.99.81-10
17  aur/brave-bin                           1:1.61.109-1   -> 1:1.65.114-1
16  aur/dropbox                             40.4.46-1      -> 191.4.4995-1
15  aur/goland                              2023.3.2-1     -> 2024.1-1
14  aur/google-chrome                       73.0.3683.86-1 -> 124.0.6367.60-1
13  aur/lazydocker                          0.17.1-1       -> 0.23.1-1
12  aur/lens                                3.6.7-1        -> 6.5.2-1
11  aur/nvitop                              1.3.1-1        -> 1.3.2-1
10  aur/pacdep                              1.1.0-3        -> 1.1.0-4
 9  aur/pacgraph                            20110629-6     -> 20110629-8
 8  aur/prince-bin                          15.1-1         -> 15.3-1
 7  aur/publii                              0.34.1-1       -> 0.45.2-1
 6  aur/python-nvidia-ml-py                 12.535.108-1   -> 12.535.133-2
 5  aur/qdirstat                            1.6.1-1        -> 1.9-2
 4  aur/rclone-browser                      1.2-1          -> 1.8.0-3
 3  aur/sweethome3d-3dmodels-blendswap-cc0  1.8-1          -> 1.9.1-2
 2  aur/synology-drive                      3.0.1_12667-1  -> 3.4.0_15724-1
 1  aur/wd719x-firmware                     1-3            -> 1-7
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
 -> could not find all required packages: nodejs-lts-gallium

答案1

我想我找到了。关键是要yay与 一起运行--debug

我个人修改~/.config/yay/config.json为:

{
  "debug": true
}

运行调试,我得到:

$ yay -Syu        
[DEBUG:runner] running /usr/bin/sudo pacman -S -y --config /etc/pacman.conf --
:: Synchronizing package databases...
 core is up to date
 extra is up to date
[DEBUG:db] populating db executor package caches. sync_len 1414 remote_len 25
:: Searching AUR for updates...
[DEBUG:runtime] packages to query [adw-gtk-theme adw-gtk3 aic94xx-firmware alsaplayer ast-fw aws-sam-cli-bin brave-bin dropbox fetchmirrors goland google-chrome lens nvm pacdep pacgraph prince-bin qdirstat qscan rclone-browser spotify-tui sweethome3d-3dmodels-blendswap-cc0 synology-drive vcal wd719x-firmware yay]
[DEBUG:runtime] rpc request https://aur.archlinux.org/rpc?arg%5B%5D=adw-gtk-theme&arg%5B%5D=adw-gtk3&arg%5B%5D=aic94xx-firmware&arg%5B%5D=alsaplayer&arg%5B%5D=ast-fw&arg%5B%5D=aws-sam-cli-bin&arg%5B%5D=brave-bin&arg%5B%5D=dropbox&arg%5B%5D=fetchmirrors&arg%5B%5D=goland&arg%5B%5D=google-chrome&arg%5B%5D=lens&arg%5B%5D=nvm&arg%5B%5D=pacdep&arg%5B%5D=pacgraph&arg%5B%5D=prince-bin&arg%5B%5D=qdirstat&arg%5B%5D=qscan&arg%5B%5D=rclone-browser&arg%5B%5D=spotify-tui&arg%5B%5D=sweethome3d-3dmodels-blendswap-cc0&arg%5B%5D=synology-drive&arg%5B%5D=vcal&arg%5B%5D=wd719x-firmware&arg%5B%5D=yay&type=info&v=5
[DEBUG:grapher] brave-bin provides: brave
[DEBUG:grapher] brave-bin provides: brave-browser
[DEBUG:grapher] prince-bin provides: prince
[DEBUG:grapher] prince-bin provides: princexml
[DEBUG:grapher] deps to find [nodejs-lts-gallium]
[DEBUG:runtime] packages to query [nodejs-lts-gallium]
[DEBUG:runtime] rpc request https://aur.archlinux.org/rpc?arg%5B%5D=nodejs-lts-gallium&type=info&v=5
[DEBUG:runtime] rpc request https://aur.archlinux.org/rpc?arg=nodejs-lts-gallium&by=provides&type=search&v=5
 -> No AUR package found for nodejs-lts-gallium

因此,依赖关系解析是通过rpc类似(但 HTTPS GET)调用来完成的: https://aur.archlinux.org/rpc?arg%5B%5D=adw-gtk-theme&arg%5B%5D=adw-gtk3&arg%5B%5D=aic94xx-firmware&arg%5B%5D=alsaplayer&arg%5B%5D= ast-fw&arg%5B%5D=aws-sam-cli-bin&arg%5B%5D=brave-bin&arg%5B%5D=dropbox&arg%5B%5D=fetchmirrors&arg%5B%5D=goland&arg%5B%5D=google-chrome&arg% 5B%5D=lens&arg%5B%5D=nvm&arg%5B%5D=pacdep&arg%5B%5D=pacgraph&arg%5B%5D=prince-bin&arg%5B%5D=qdirstat&arg%5B%5D=qscan&arg%5B%5D=rclone- browser&arg%5B%5D=spotify-tui&arg%5B%5D=sweethome3d-3dmodels-blendswap-cc0&arg%5B%5D=synology-drive&arg%5B%5D=vcal&arg%5B%5D=wd719x-firmware&arg%5B%5D=yay&type=信息&v=5

分析这个响应负载,我看到:

{
    "Conflicts": [
        "lens-bin"
    ],
    "Depends": [
        "gtk3",
        "libxss",
        "nss"
    ],
    "Description": "The Kubernetes IDE",
    "FirstSubmitted": 1585291446,
    "ID": 1275472,
    "Keywords": [
        "aks",
        "dashboard",
        "devops",
        "kubernetes"
    ],
    "LastModified": 1687165784,
    "License": [
        "MIT"
    ],
    "Maintainer": "ogarcia",
    "MakeDepends": [
        "npm",
        "nodejs-lts-gallium"
    ],
    "Name": "lens",
    "NumVotes": 8,
    "OptDepends": [
        "kubectl",
        "helm"
    ],
    "OutOfDate": null,
    "PackageBase": "lens",
    "PackageBaseID": 150750,
    "Popularity": 0.043536,
    "Submitter": "dbirks",
    "URL": "https://k8slens.dev",
    "URLPath": "/cgit/aur.git/snapshot/lens.tar.gz",
    "Version": "6.5.2-1"
}

检查我安装的内容,发现lens已经安装了。

删除了lens,现在一切都恢复了普通的。谢谢你!

答案2

nodejs-lts-gallium是 Nodejs 的旧 lts 版本,它已经过了支持期,因此不再包含在 AUR 中。最新版本是nodejs-lts-iron.然而,Arch 存储库中有一个 nodejs 包,它可能是具有最新更新的滚动版本。

要解决该问题,请将其删除nodejs-lts-gallium并替换为新的 lts 或滚动版本。我选择了滚动版本,并且必须使用 pacman 的 --overwrite=* 开关来解决它。

相关内容