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.
-
AuthorPosts
-
September 1, 2021 at 11:01 pm #66231Member
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.listdeb 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 packagesSeptember 1, 2021 at 11:32 pm #66232Moderator
Brian Masinick
::How about
sudo apt get install emacs
If that doesn’t work,
sudo apt get remove emacs
sudo apt get install emacsAssuming 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 MasinickSeptember 2, 2021 at 12:21 am #66237Memberstephenbbb
September 2, 2021 at 6:04 am #66252Member
sybok
::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.September 2, 2021 at 6:44 pm #66279Moderator
Brian Masinick
::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 -
AuthorPosts
- You must be logged in to reply to this topic.