如何获取操作系统升级期间提到的不受支持的软件包列表?

如何获取操作系统升级期间提到的不受支持的软件包列表?

跑步时sudo do-release-upgrade,我收到一条消息:

Canonical 不再支持 16 个已安装的软件包。您仍然可以获得社区的支持。

我知道我可能不应该担心,但是如何在开始升级之前获取这些软件包的列表?

以下是do-release-upgrade选择继续之前的完整输出:http://paste.ubuntu.com/12990830/

为了方便起见,这是其中最重要的部分:

Calculating the changes

Do you want to start the upgrade? 


16 installed packages are no longer supported by Canonical. You can 
still get support from the community. 

61 packages are going to be removed. 204 new packages are going to be 
installed. 1617 packages are going to be upgraded. 

You have to download a total of 1,220 M. This download will take 
about 55 minutes with your connection. 

Installing the upgrade can take several hours. Once the download has 
finished, the process cannot be canceled. 

 Continue [yN]  Details [d]

答案1

  • 第一个选项:D启动后按查看详细信息sudo do-release-upgrade,您可以在问题中的命令输出中看到它。

  • 第二种选择:使用/var/log/dist-upgrade/main.log

    awk -F\' '/demoted/ {gsub(/ /,"\n",$2); print $2}' /var/log/dist-upgrade/main.log
    

    看到这样的事情

    dvipng
    gir1.2-vte-2.90
    gnome-icon-theme-symbolic
    libart2.0-cil
    libgconf2-4
    libgconf2.0-cil
    libgnome-vfs2.0-cil
    libgnome2.24-cil
    libvte-2.90-9
    monodoc-manual
    obex-data-server
    python-commandnotfound
    rhythmbox-mozilla
    
  • 第三个选项:你可以使用此命令查看已安装的社区软件包列表

    aptitude search '~i ~suniverse' -F "%p"
    

    看到这样的事情

    adwaitaicon-theme-full
    aglfn
    aha                                                                           
    android-tools-adb                                                                  
    android-tools-fastboot
    anjuta
    anjuta-common
    apt-file
    […snip…]
    

答案2

当你退出do-release-upgrade脚本时,无论你选择Ny,日志都会保存在 中/var/log/dist-upgrade/main.log

获取不受支持的软件包列表只需运行以下命令:

grep 'demoted' /var/log/dist-upgrade/main.log

你会得到类似如下的输出:

2015-10-28 18:14:01,540 DEBUG demoted: 'gir1.2-vte-2.90 gnome-icon-theme gnome-icon-theme-symbolic gstreamer0.10-plugins-base-apps libpocketsphinx1 libsphinxbase1 libunityvoice1 libvte-2.90-9 libvte-2.90-common obex-data-server python-commandnotfound rhythmbox-mozilla sphinx-voxforge-hmm-en sphinx-voxforge-lm-en ubuntu-wallpapers-vivid unity-voice-service'

答案3

我相信最简单、最直接的方法是使用此命令(截至 Ubuntu 20.04):

ubuntu-security-status --unavailable

这将给你如下输出:

1734 packages installed, of which:
  13 packages are no longer available for download
dvipng gir1.2-vte-2.90 gnome-icon-theme-symbolic libart2.0-cil 
 libgconf2-4 libgconf2.0-cil libgnome-vfs2.0-cil libgnome2.24-cil 
 libvte-2.90-9 monodoc-manual obex-data-server python-commandnotfound 
 rhythmbox-mozilla

Packages that are not available for download may be left over from a
previous release of Ubuntu, may have been installed directly from a
.deb file, or are from a source which has been disabled.

Run 'apt-cache show dvipng' to learn more about that package.

相关内容