apt Always-Include-Phased-Updates 不起作用

apt Always-Include-Phased-Updates 不起作用

我正在运行 lubuntu jammy。我尝试配置 apt 始终包含分阶段更新。我的第一次尝试

/etc/apt/apt.conf.d/99phased-update

#phased-update deaktivieren.
Binary::APT::Get::Always-Include-Phased-Updates "true";
Binary::apt::APT::Always-Include-Phased-Updates "true";

不起作用。2.尝试

#phased-update deaktivieren.
Binary::APT::Get::Always-Include-Phased-Updates "1";
Binary::apt::APT::Always-Include-Phased-Updates "1";

抱歉,geman 的输出

apt-cache policy python3-apport 
python3-apport:
  Installiert:           2.20.11-0ubuntu82.2
  Installationskandidat: 2.20.11-0ubuntu82.3
  Versionstabelle:
     2.20.11-0ubuntu82.3 500 (gestaffelt 10%) (phased)
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
 *** 2.20.11-0ubuntu82.2 100
        100 /var/lib/dpkg/status
     2.20.11-0ubuntu82.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy-security/main i386 Packages
     2.20.11-0ubuntu82 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages

也不起作用。

apt-config dump | grep -i phased
Binary::apt::APT::Always-Include-Phased-Updates "1";
Binary::apt::Get::Always-Include-Phased-Updates "1";

我是不是误解了什么?

答案1

/etc/apt/apt.conf.d/99phased-update在您的:中尝试此内容

// Always include phased updates (Default = true)
APT::Get::Always-Include-Phased-Updates "true"; 

然后重试运行升级:

sudo apt update && sudo apt upgrade

此外,请注意,apt policy <package-name>仍会显示更新正在分阶段实施:

$ apt policy python3-apport
python3-apport:
  Installed: 2.20.11-0ubuntu82.3
  Candidate: 2.20.11-0ubuntu82.3
  Version table:
 *** 2.20.11-0ubuntu82.3 500 (phased 10%)
        500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.20.11-0ubuntu82.1 500
        500 http://archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     2.20.11-0ubuntu82 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages

但它仍然会更新(正如您从我安装的版本中看到的那样,它是通过无人值守升级安装的)。

相关内容