存储库“http://security.debian.org/debian-securitybuster/updatesInRelease”将其“Suite”值从“stable”更改为“oldstable”

我的一些 Github Actions 工作流最近开始在安装 Chromedriver 时返回此错误:

Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
Error: Process completed with exit code 100.
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Reading package lists...
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
Error: Process completed with exit code 100.

这是我的步骤实现:

Docker 镜像实现:docker://guillaumefalourd/ritchiecli:py-3.8

我试过的

1 - 我从这里和这里读到添加sudo apt-get --allow-releaseinfo-change updatesudo apt-get dist-upgrade可以解决问题,但即使将这些添加到我的工作流程中也没有解决它。

2 - 我尝试使用此操作setup-chromedriver但在遵循文档时返回相同的错误:

jobs:
  build:
    runs-on: ubuntu-latest
    container:
        image: docker://guillaumefalourd/ritchiecli:py-3.8
    steps:
      - name: Install Chrome Driver
        run: |
            sudo apt-get update
            sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4 gnupg2
            sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
            sudo echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
            sudo apt-get -y update
            sudo apt-get -y install google-chrome-stable
            wget -N https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_linux64.zip -P ~/
            unzip ~/chromedriver_linux64.zip -d ~/
            rm ~/chromedriver_linux64.zip
            sudo mv -f ~/chromedriver /usr/local/bin/chromedriver
            sudo chown root:root /usr/local/bin/chromedriver
            sudo chmod 0755 /usr/local/bin/chromedriver

3 - 因为它似乎与Debian Buster (?)有关,我也尝试使用另一个 ubuntu runner 版本作为 runner(ubuntu-18.04而不是ubuntu-latest),但没有任何改变,同样的错误。

知道如何解决这个问题吗?


编辑

回答

后来我观察到问题发生在第一个命令中:(sudo apt-get update并且我在之后添加了另一个命令......)。

用它代替sudo apt-get --allow-releaseinfo-change update解决了我的问题。

因此,答案不添加sudo apt-get --allow-releaseinfo-change update到步骤执行的命令,但代替sudo apt-get update为它命令。

steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@master
  with:
    # Optional: do not specify to match Chrome's version
    chromedriver-version: '88.0.4324.96'
- run: |
    export DISPLAY=:99
    chromedriver --url-base=/wd/hub &
    sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional

回答

我知道你试过了

apt-get --allow-releaseinfo-change update

但它对我有用。

这是我在 dockerfile 中的命令:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' 
&& apt-get --allow-releaseinfo-change update 
&& apt-get install -y google-chrome-unstable 
   --no-install-recommends 
&& rm -rf /var/lib/apt/lists/*

不需要: rm -rf /var/lib/apt/lists/*

  • 谢谢你的回答。后来我观察到问题发生在第一个命令:`sudo apt-get update`(我在之后添加了另一个命令......)。只需将其替换为 `sudo apt-get --allow-releaseinfo-change update` 就解决了我的问题:)

以上是存储库“http://security.debian.org/debian-securitybuster/updatesInRelease”将其“Suite”值从“stable”更改为“oldstable”的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>