Ubuntu – How to export the “available software to download” to a file


Sometimes Ubuntu will show a popup like this:

enter image description here

(It looks weird because I'm using Regolith)

How can I export the list of packages/changes Ubuntu wants to install to a file? This is for debugging purposes – I think something in this update is breaking my system, and I want to be able to be able to figure out exactly where the break is coming from.

Best Answer

  • Open a terminal and type the following:

    sudo apt update
    apt list --upgradable > ~/downloadable.txt

    The list of software available to download will be saved to a file named downloadable.txt in your home folder.

    You can ignore the following warning in this case...

    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.