how to change repo

Forum Forums New users New Users and General Questions how to change repo

  • This topic has 4 replies, 3 voices, and was last updated Sep 2-6:44 pm by Brian Masinick.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #66231
    Member
    stephenbbb

      I need to upgrade my emacs and the default repo has 26.1 while debian has 27.1.
      I added this line to /etc/apt/sources.list

      deb http://ftp.us.debian.org/debian bullseye main

      then updated and tried to upgrade emacs,but it complains about conflict with 26.1. how can I resolve this:

      
      $ sudo apt upgrade emacs
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Calculating upgrade... Done
      Some packages could not be installed. This may mean that you have
      requested an impossible situation or if you are using the unstable
      distribution that some required packages have not yet been created
      or been moved out of Incoming.
      The following information may help to resolve the situation:
      
      The following packages have unmet dependencies:
       emacs : Depends: emacs-gtk (>= 1:27.1) but 1:26.1+1-3.2+deb10u2 is to be installed or
                        emacs-lucid (>= 1:27.1) but it is not going to be installed or
                        emacs-nox (>= 1:27.1) but it is not going to be installed
      E: Broken packages
      
      #66232
      Moderator
      Brian Masinick
        Helpful
        Up
        1
        ::

        How about

        sudo apt get install emacs

        If that doesn’t work,

        sudo apt get remove emacs
        sudo apt get install emacs

        Assuming Bullseye is in your repo list.

        Let me know if that works; it worked fine for me; I have emacs on a couple of my systems and it’s 27.1.

        --
        Brian Masinick

        #66237
        Member
        stephenbbb
          Helpful
          Up
          0
          ::

          yes, removing and then installing got me the bullseye 27.1 version
          Thanks

          #66252
          Member
          sybok
            Helpful
            Up
            0
            ::

            It happens to me sometimes after an (early) upgrade to higher version (still in beta); applies to both antiX and Devuan.
            I have to remove some packages, update and install them later on to get to the higher version as there is something that blocks upgrade of all at once.

            BTW:
            1) Hope that you have properly changed *all* repositories, not only the single line with Debian, to bullseye-based version not to create a messed up system.
            2) It may be useful to change ‘main’ to ‘main contrib non-free’ to have more packages available.
            3) Polite suggestion: Is it possible to change the title of your topic to be more accurate?
            E.g. “installing newer/latest SW version by changing repository” as it seems you know how-to change repository.

            #66279
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              It happens to me sometimes after an (early) upgrade to higher version (still in beta); applies to both antiX and Devuan.
              I have to remove some packages, update and install them later on to get to the higher version as there is something that blocks upgrade of all at once.

              BTW:
              1) Hope that you have properly changed *all* repositories, not only the single line with Debian, to bullseye-based version not to create a messed up system.
              2) It may be useful to change ‘main’ to ‘main contrib non-free’ to have more packages available.
              3) Polite suggestion: Is it possible to change the title of your topic to be more accurate?
              E.g. “installing newer/latest SW version by changing repository” as it seems you know how-to change repository.

              @sybok: You’re right. I’ve done this enough times that I either do it right, or if I “forget” a step or two and it fails, I am able to figure out the reason, resolve unexpected dependencies (though Debian usually does a good job).

              In the specific case of Emacs, I’ve installed it countless times, so I can do it. I’ve also built Emacs many times from the source code on both UNIX and Linux systems. It can take a while, but it’s a straightforward process.

              --
              Brian Masinick

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.