[solved] Can’t Update Package Database?

Forum Forums General Software [solved] Can’t Update Package Database?

Tagged: 

  • This topic has 14 replies, 7 voices, and was last updated Jan 3-3:22 am by seaken64.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #74216
    Member
    ArcticConifer111

      I had recently installed antiX 21 on my laptop, and thus wanted to update the package database. I tried using apt-get update in the root terminal, but had gotten this error message:

      The repository ‘http://mx.debian.nz/antix/bullseye bullseye Release’ does not have a Release file.

      The same error had popped up when I had clicked ‘Reload’ in Synaptic.

      However, when I had run the antiX updater, it just said that there were no updates available.

      Is it just that there really are no updates available (like the updater says), or is there something I should be doing to make the package database update properly?

      Thanks in advance.

      • This topic was modified 1 year, 4 months ago by ArcticConifer111.
      • This topic was modified 1 year, 4 months ago by christophe. Reason: Thank you – that solved the problem right away
      #74218
      Forum Admin
      anticapitalista
        Helpful
        Up
        1
        ::

        Use Repo-Manager to change the antiX repos.
        That one is probably out of date or no longer available.

        https://antixlinux.com/mirmon-packages/

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #74230
        Member
        stevesr0
          Helpful
          Up
          0
          ::

          Shouldn’t that be InRelease?

          stevesr0

          #74288
          Member
          ArcticConifer111
            Helpful
            Up
            0
            ::

            Use Repo-Manager to change the antiX repos.
            That one is probably out of date or no longer available.

            https://antixlinux.com/mirmon-packages/

            Thank you – that solved the problem right away.

            • This reply was modified 1 year, 4 months ago by ArcticConifer111.
            #74290
            Member
            ArcticConifer111
              Helpful
              Up
              0
              ::

              Shouldn’t that be InRelease?

              stevesr0

              If this is obvious, sorry in advance (I’m fairly new here, and want to familiarise myself with Linux), but what do you mean by ‘InRelease’? I’ve done a bit of research, and I believe it’s a type of file downloaded by apt in order to download a package from a repository? In that case, would you please mind clarifying what you mean in the above context?

              Thanks again.

              • This reply was modified 1 year, 4 months ago by ArcticConifer111.
              #74292
              Member
              ArcticConifer111
                Helpful
                Up
                0
                ::

                Use Repo-Manager to change the antiX repos.
                That one is probably out of date or no longer available.

                https://antixlinux.com/mirmon-packages/

                Also – with the OS as a whole -, I’ve read that there are no automatic/notifications-for updates in antiX. In that case, are the package manager & ‘antiX Updater’ the only programs I need to periodically check to update, in order to keep the entire system up-to-date (assuming I only install programs/applications from said package manager)? Or are there other things that I need to keep track of?

                My apologies for bothering you again (and since this may be too off-topic); I just thought it would have been better off replying here instead of having started a new thread.

                Thanks in advance.

                #74294
                Member
                ModdIt
                  Helpful
                  Up
                  1
                  ::

                  Mnay ways to do things. I encourage the console, you see what will be installed, maybe held and any errors, also may be prompted to use autoremove.
                  Read the packets, if unsure backup first then ask. Which is why I advise against adding yes shorthand to the commands.

                  To fully update I key in upd which equals apt update && apt full-upgrade hit enter and the process is running while others are opening the menu.
                  Just get in to the habit and you stop thinking about how often, it takes seconds I put in those three letters pretty much daily.

                  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’

                  if you want to click a button call a mini script with a taskbar shortcut, that is really easy to do.

                  #74295
                  Moderator
                  BobC
                    Helpful
                    Up
                    1
                    ::

                    You could search the forums here (use Forum > Search)…

                    There is an updater on the antiX submenu.

                    There is apt-notifier in the repos you can install.

                    In antiX goodies there is yad-updater, if I remember right.

                    If you trust yourself to run it, just add updater or yad-updater to your toolbar, else install apt-notifier, or add something to your crontab (job scheduler)

                    PS: Or go Moddit’s route. He typed faster. There are many ways to solve it…

                    PSS: Why isn’t it already there by default, you might ask? Because many antiX users are running minimal systems that can’t spare the resources or are running from flashdrives or frugal and don’t want automatic updates.

                    • This reply was modified 1 year, 4 months ago by BobC.
                    • This reply was modified 1 year, 4 months ago by BobC.
                    #74363
                    Member
                    seaken64
                      Helpful
                      Up
                      1
                      ::

                      The Package Installer does not have all the possible packages you may want to install. If you use Synaptic you can hit the “Reload” button to update the database. The CLI_aptiX package manager also runs the updates for you. I tend to use the Terminal and type in:

                      sudo apt update

                      and then:

                      sudo apt dist-upgrade

                      or

                      sudo apt dist-upgrade --fix-missing

                      I do this once in awhile on my machines I used almost daily. On machines that have been sitting unused I do this immediately after boot up. As already said, I can read the screen in the terminal and decide if I want to proceed or abort and do some research first. If there are recommendation to use autoremove I go aherad and run, in the terminal:

                      sudo apt autoremove

                      I know there are some GUI tools available but I just feel more comfortable doing the updates and upgrades by terminal.

                      Seaken64

                      #74364
                      Moderator
                      christophe
                        Helpful
                        Up
                        1
                        ::

                        Also – with the OS as a whole -, I’ve read that there are no automatic/notifications-for updates in antiX. In that case, are the package manager & ‘antiX Updater’ the only programs I need to periodically check to update, in order to keep the entire system up-to-date (assuming I only install programs/applications from said package manager)?

                        What everyone else wrote is correct. But the simple answer to your question is: yes. That’s all you have to do to keep your system upgraded. 🙂

                        confirmed antiX frugaler, since 2019

                        #74367
                        Member
                        seaken64
                          Helpful
                          Up
                          2
                          ::

                          The antiX Updater should be sufficient. (I don’t think the Package Installer helps with system upgrades). What some of us are suggesting is that the Terminal/command line/console approach is also sufficient and may have some advantage to the antiX Updater GUI.

                          But one, or the other, is sufficient.

                          Seaken64

                          #74407
                          Member
                          ArcticConifer111
                            Helpful
                            Up
                            0
                            ::

                            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 1 year, 4 months ago by ArcticConifer111.
                            • This reply was modified 1 year, 4 months ago by ArcticConifer111.
                            #74417
                            Member
                            ModdIt
                              Helpful
                              Up
                              0
                              ::

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

                              No automatic, something I do not use.

                              It is a way to shorten longer commands, the method is called an alias, enter upd it is translated to apt update && apt full update.
                              The more modern version of apt get update and apt get dist-upgrade. Both do same just the commands are shorter in new version.

                              I have removed the packages suggested by apt, seen no ill effects. At times packages become redundant due upgrades or system changes.

                              Whereyou need to worry is if you ever see a very long list of packages, something typical for systemD setups especialy with gnome.
                              Remove something and it takes out the entire desktop. I dislike that intensly which is why I am here.

                              The fix missing is an additional flag or command, apt will attempt to fix broken packages if given that.

                              Please keep calm, have a backup at hand, one you have checked will run from live stick. AntiX is very stable but you may get playful
                              and break your system at some stage. If you have said full personal backup or a personal remaster you are reinstalled in a few minutes
                              with all your personal changes not lost. I still break a system, usualy with some self compiled package which I want to try.

                              You will find tools intertwine, some such as synaptic or antiX installer are frontends, that is intended to make life easier for the user.
                              Synaptic has a very useful feature, it is easy to see what is installed where, it also helps to overview the 3000 or more available packages.

                              Like you said you can answer most of the questions with a bit of reading, that will likely lead to more questions and more reading and growing
                              knowledge. Seems complicated, depends on how much you want to know. :-).

                              #74450
                              Member
                              stevesr0
                                Helpful
                                Up
                                0
                                ::

                                Hi ArcticConifer,

                                re: InRelease vs Release

                                Irrelevant to your problem. I had noticed on my systems that files from the stable version were marked as “InRelease”, so I thought that you should be looking for InRelease files rather than Release files.

                                Looked this up (https://manpages.debian.org/bullseye/apt/sources.list.5.en.html0 and found that there is a difference between these, so theoretically that might have been messed up in your repository , but (a) it isn’t a difference that I understand AND, more importantly

                                (b) updating your repositories as you were instructed solved things <g>.

                                Happy New Year.

                                stevesr0

                                • This reply was modified 1 year, 4 months ago by stevesr0.
                                • This reply was modified 1 year, 4 months ago by stevesr0.
                                #74519
                                Member
                                seaken64
                                  Helpful
                                  Up
                                  0
                                  ::

                                  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)?

                                  apt-get and apt are essentially the same thing. I got used to typing “dist-upgrade” in apt-get. I switched to apt, where the command is “full-upgrade”, but “dist-upgrade” is understood by apt and is compatible.

                                  I will refer you to the Debian Handbook for a better explanation:
                                  https://www.debian.org/doc/manuals/debian-handbook/sect.apt-get.en.html

                                  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?

                                  Yes, that is essentially the way it works. The –fix-missing option is not usually needed. If there is a problem the terminal output will suggest trying it.

                                  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?

                                  There are varying opinions on autoremove. I have not had any issues running the command when the terminal output present it as an option. But I don’t usually go outside the standard repos.

                                  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.

                                  I suggest you read the entire Debian Handbook. It’s a great resource:

                                  https://www.debian.org/doc/manuals/debian-handbook/index.en.html

                                  Seaken64

                                  • This reply was modified 1 year, 4 months ago by seaken64.
                                Viewing 15 posts - 1 through 15 (of 15 total)
                                • You must be logged in to reply to this topic.