AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1087426
Accepted
Juergen
Juergen
Asked: 2018-10-27 04:19:09 +0800 CST2018-10-27 04:19:09 +0800 CST 2018-10-27 04:19:09 +0800 CST

查找 Ubuntu 团队不支持的已安装软件包

  • 772

我如何检查我是否安装了/etc/apt/sources.list“完全不受 Ubuntu 团队支持”的任何 Universe 或 Multiverse 软件包?
我正在寻找的是 Ubuntu 18 LTS 服务器(无 GUI)的命令行,用于按组件列出已安装的软件包,包括无法从apt-get(不是配置的存档的一部分/etc/apt/sources.list)获得的已安装软件包。
aptitude versions '?name(.)'列出可用的包及其安装状态,但不输出其源组件,也不输出apt-cache.

package-management apt
  • 4 4 个回答
  • 2483 Views

4 个回答

  • Voted
  1. Best Answer
    N0rbert
    2018-10-27T04:38:52+08:002018-10-27T04:38:52+08:00

    你可以使用ubuntu-support-status命令

    $ ubuntu-support-status --help
    Usage: ubuntu-support-status [options]
    
    Options:
      -h, --help          show this help message and exit
      --show-unsupported  Show unsupported packages on this machine
      --show-supported    Show supported packages on this machine
      --show-all          Show all packages with their status
      --list              Show all packages in a list
    

    与相应的论点--show-unsupported。

    以下是我的 16.04.5 LTS 系统的示例:

    $ ubuntu-support-status --show-unsupported
    
    Support status summary of 'hostname':
    
    You have 94 packages (1.9%) supported until April 2021 (Community - 5y)
    You have 2668 packages (54.0%) supported until April 2021 (Canonical - 5y)
    You have 647 packages (13.1%) supported until April 2019 (Community - 3y)
    
    You have 79 packages (1.6%) that can not/no-longer be downloaded
    You have 1456 packages (29.4%) that are unsupported
    
    No longer downloadable:
    acroread acroread-bin:i386 cpp-4.4 cpp-4.5 cpp-4.6 
    ... 
    
    Unsupported: 
    abiword-plugin-grammar adequate aglfn alien android android-tools-adb 
    android-tools-fastboot ant ant-optional antiword apt-file
    ...
    y-ppa-manager yad zenmap
    

    (我添加了...限制行数)。

    • 15
  2. Vijay
    2018-10-27T04:31:47+08:002018-10-27T04:31:47+08:00
    sudo apt install synaptic
    

    打开突触包管理器。转到“原点”(左下角)。

    • 4
  3. user886479
    2018-10-27T06:56:20+08:002018-10-27T06:56:20+08:00

    Debian wiki展示了如何区分原生包和非原生包。

    如果你想查看sources.list和安装的包之间的关系,你可以使用dpkg --get-selectionsandapt-cache show和apt-get update。

    或者使用 curl 在软件包数据库中搜索。

    在 Fedora/RHEL 中有一个工具用于验证文件是否来自受支持的包。

    • 0
  4. Juergen
    2019-01-25T03:54:43+08:002019-01-25T03:54:43+08:00

    我最终做了什么来获得所有不完全支持且没有混乱的可读列表:

    # sed removes summary lines and packages supported for five years
    # and prints one line per not fully supported package:
    ubuntu-support-status --show-all | sed '0,/summary/ d; /^Support.*5y/,/^$/ d; /^You have/,/^$/ d; /:/ n; s- $--; s- -\n-g'
    
    No longer downloadable:
    
    
    Unsupported:
    cgroup-tools
    ...
    
    Supported until April 2021 (Community - 3y):
    fonts-dejavu
    libx86-1
    openjdk-8-jre
    openjdk-8-jre-headless
    
    • 0

相关问题

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • 如何从命令行判断机器是否需要重新启动?

  • 有没有办法重置所有包/源并从头开始?

  • 如何回滚到 PHP 5.2?

  • 包管理器之间有什么区别?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve