Reply To: [solved] Can’t Update Package Database?

Forum › Forums › General › Software › [solved] Can’t Update Package Database? › Reply To: [solved] Can’t Update Package Database?

#74407
ArcticConifer111
Member

    Thanks for the help, everyone – I’ve learnt quite a lot from it. I just want to clarify a few things:

    1. Are there any differences between the various updating methods outlined above (other than the fact that the terminal-based methods also show you what is happening in more detail)? For example, some research has told me that the aforementioned sudo apt dist-upgrade and sudo apt full-upgrade commands serve the same function. If that’s the case, then what about sudo apt dist-upgrade –fix-missing in Seaken64’s reply? Apparently it fixes/ignores broken/missing packages on top of ‘dist-upgrading’ – does sudo apt full-upgrade also do so? For that matter, do antiX Updater and Synaptic perform that much when updating (e.g. fixing missing packages, executing autoremove, etc)?

    2. I’m guessing that clicking ‘Reload’ in Synaptic is the equivalent of running sudo apt update in the Terminal, as clicking ‘Mark all Upgrades’ & ‘Apply’ is sudo apt dist-upgrade/dist-upgrade –fix-missing/full-upgrade (again, I’m not completely sure if there are differences between the three)? And that using antiX Updater does all of this in one go?

    3. ModdIt, thanks for your response – it was very informative. I’m slightly confused on what you mean in this part, however:

    Magic, no
    just /home/yourusername/.bash_aliases

    alias upd=’sudo apt update && sudo apt full-upgrade’
    alias clean=’sudo apt autoclean’
    alias arem=’sudo apt autoremove’
    alias yt=’ytfzf’
    alias cache=’rm -rf ~/.cache/chromium’

    Is that a bash script to automatically update (using the commands you had talked about)? Will that automatically perform autoremove too?

    4. Speaking of autoremove, I had tried sudo apt dist-upgrade in the Terminal, and had gotten this message:

    The following packages were automatically installed and are no longer required:
      libpolkit-agent-1-0 libpolkit-gobject-1-0 libpolkit-gobject-elogind-1-0
    Use 'sudo apt autoremove' to remove them.

    This same message had also appeared when I’d ran sudo apt dist-upgrade –fix-missing and sudo apt full-upgrade.

    Is libpolkit safe to remove? I looked it up online, and apparently it’s like a sudo privilege kit, but for systemd-based OSes? In that case, it wouldn’t be necessary to keep, right?

    5. Finally, I had read a bit upon said autoremove, and how it can break antiX systems. Is this still possible (at-least when it asks you whilst updating [like in the above code])? Are these dependencies that are being removed by the command re-downloadable?

    Sorry if I’m going on too much of a tangent and asking so many questions – I had only used Linux for the first time a few days ago (I should probably read more of the FAQ [and other sources] to learn the basics first). If needed, I have no problem with any moderators/admins thus moving these posts elsewhere/removing them. Alternatively, I could change the title?

    Thanks again.

    • This reply was modified 4 years, 8 months ago by ArcticConifer111.
    • This reply was modified 4 years, 8 months ago by ArcticConifer111.