直接用 yay -S aur/chrome-remote-desktop 安裝,出現下面的錯誤
----------------------------
==> Retrieving sources...
-> Downloading chrome-remote-desktop-111.0.5563.12.deb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 1449 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/chrome-remote-desktop/chrome-remote-desktop_111.0.5563.12_amd64.deb
Aborting...
-> error making: chrome-remote-desktop
----------------------------
Google 到的答案,參考 Gentoo 的 ebuild,使用 curl 來找出目前的版本
----------------------------
$ curl -q https://dl.google.com/linux/chrome-remote-desktop/deb/dists/stable/main/binary-amd64/Packages | grep ^Filename
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1381 100 1381 0 0 17934 0 --:--:-- --:--:-- --:--:-- 18171
Filename: pool/main/c/chrome-remote-desktop/chrome-remote-desktop_112.0.5615.18_amd64.deb
----------------------------
使用 git clone https://aur.archlinux.org/chrome-remote-desktop.git 下載 AUR 的套件,再修改它的 PKGBUILD 中的版本。再執行安裝,出現錯誤。
----------------------------
$ makepkg -si
==> Making package: chrome-remote-desktop 112.0.5615.18-1 (Tue Mar 21 14:03:01 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading chrome-remote-desktop-112.0.5615.18.deb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17.1M 100 17.1M 0 0 45.8M 0 --:--:-- --:--:-- --:--:-- 45.8M
-> Found chrome-remote-desktop.service
-> Found pamrule
-> Found crd
==> Validating source files with sha256sums...
chrome-remote-desktop-112.0.5615.18.deb ... FAILED
chrome-remote-desktop.service ... Passed
pamrule ... Passed
crd ... Passed
==> ERROR: One or more files did not pass the validity check!
----------------------------執行
---------------------
$ makepkg -g
==> Retrieving sources...
-> Found chrome-remote-desktop-112.0.5615.18.deb
-> Found chrome-remote-desktop.service
-> Found pamrule
-> Found crd
==> Generating checksums for source files...
sha256sums=('c4dda4236e0d25523fab390e741c7a43334e1b2932d96443af3d2fed43fcc49d'
'e5da5ae89b5bc599f72f415d1523341b25357931b0de46159fce50ab83615a4b'
'fcc38269eb1cc902abff9688eda9377a22367e39b9f111f87c0dd8e77adb82e2'
'021110f49d465294517eec92eeb24ebca41e264ef33cbdda78732add1f269d02')
------------------------
將 checksum 複製到 PKGBUILD 中。即可成功安裝。
沒有留言:
張貼留言