软件和更新:有安全更新时。空列表,无法选择任何项目

软件和更新:有安全更新时。空列表,无法选择任何项目

如何在软件和更新应用程序中恢复正常的“当有安全更新时”列表?现在有空字符串。Ubuntu 22.04.2 Jammy Jellyfish。

在此处输入图片描述

grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d/

grep -r deb /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list:#deb cdrom:[Ubuntu 22.04.2 LTS _Jammy Jellyfish_ - Release amd64 (20230223)]/ jammy main restricted
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy universe
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy universe
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates universe
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates universe
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
/etc/apt/sources.list:deb http://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
/etc/apt/sources.list:# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security main restricted
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security universe
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
/etc/apt/sources.list:deb http://security.ubuntu.com/ubuntu jammy-security multiverse
/etc/apt/sources.list:# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse
/etc/apt/sources.list:# (e.g. netinst, live or single CD). The matching "deb cdrom"
/etc/apt/sources.list.d/ubuntu-esm-apps.list:deb https://esm.ubuntu.com/apps/ubuntu jammy-apps-security main
/etc/apt/sources.list.d/ubuntu-esm-apps.list:# deb-src https://esm.ubuntu.com/apps/ubuntu jammy-apps-security main
/etc/apt/sources.list.d/ubuntu-esm-apps.list:deb https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates main
/etc/apt/sources.list.d/ubuntu-esm-apps.list:# deb-src https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates main
/etc/apt/sources.list.d/ubuntu-esm-infra.list:deb https://esm.ubuntu.com/infra/ubuntu jammy-infra-security main
/etc/apt/sources.list.d/ubuntu-esm-infra.list:# deb-src https://esm.ubuntu.com/infra/ubuntu jammy-infra-security main
/etc/apt/sources.list.d/ubuntu-esm-infra.list:deb https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates main
/etc/apt/sources.list.d/ubuntu-esm-infra.list:# deb-src https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates main

尾部 /var/log/unattended-upgrades/unattended-upgrades.log

tail /var/log/unattended-upgrades/unattended-upgrades.log
2023-04-23 08:59:36,050 INFO Запускаются сценарии необслуживаемой установки
2023-04-23 08:59:36,050 INFO Разрешённые источники: o=Ubuntu,a=jammy, o=Ubuntu,a=jammy-security, o=UbuntuESMApps,a=jammy-apps-security, o=UbuntuESM,a=jammy-infra-security
2023-04-23 08:59:36,050 INFO Initial blacklist: 
2023-04-23 08:59:36,050 INFO Initial whitelist (not strict): 
2023-04-23 08:59:37,136 WARNING Could not figure out development release: Distribution data outdated. Please check for an update for distro-info-data. See /usr/share/doc/distro-info-data/README.Debian for details.
2023-04-23 08:59:37,136 INFO Запускаются сценарии необслуживаемой установки
2023-04-23 08:59:37,137 INFO Разрешённые источники: o=Ubuntu,a=jammy, o=Ubuntu,a=jammy-security, o=UbuntuESMApps,a=jammy-apps-security, o=UbuntuESM,a=jammy-infra-security
2023-04-23 08:59:37,137 INFO Initial blacklist: 
2023-04-23 08:59:37,137 INFO Initial whitelist (not strict): 
2023-04-23 08:59:38,674 INFO No packages found that can be upgraded unattended and no pending auto-removals

答案1

如果您对软件和更新进行任何更改,则需要退出并重新启动以使更改生效。

将“自动检查”设置为从不仍会显示“当有可用的安全更新时”可供选择:

在此处输入图片描述

现在重新启动应用程序“当有可用的安全更新时”不可选择:

在此处输入图片描述

将“自动检查”设置为每日仍显示“当有可用的安全更新时”不可选择:

在此处输入图片描述

现在可以选择“当有可用的安全更新时”重新启动应用程序:

在此处输入图片描述

相关内容