Re: Git install crashed nearly whole System
- From
- Christian Strasser <christian@avr-fun.de>
- Date
- Mar 18, 2021, 10:37 UTC
- Message-ID
- <b805d53740429a26413cdd4e756db29f95c98052.camel@avr-fun.de>
- In-Reply-To
- <YE5wFxE5RPew5zrJ@camp.crustytoothpaste.net>
Hello Brian,
First, I want to thank you for your detailed information.
I'm a little confused. Is the instruction on " https://git-scm.com/book/en/v2/Getting-Started-Installing-Git" not the official one? As you can see there, the first part is how to install git with your package manager (git-all).
I have to admit that I'm new to the Linux world, and that I still have to learn a lot about it.
After the disaster I reinstalled all lost packages (also GNOME) according to the information in my apt history. Everything seems to work fine now.
Should I remove everything form "git-all" and reinstall everything according to your advise? It seems no git daemon is working right now (systemctl | grep git).
Best regards form Germany, Christian
On Sun, 2021-03-14 at 20:20 +0000, brian m. carlson wrote:
Show 59 quoted lines
> On 2021-03-14 at 18:23:40, Christian Strasser wrote: > > Hello all, > > > > I installed Git yesterday on my system. For that I used “sudo apt- > > get > > install git-all”. During the installation a lot of very important > > packages got removed! It was horrible, and I couldn’t use my gnome > > desktop environment at all! A lot off dependencies got lost! > > Fortunately, I could save my system through read out the > > information > > about removed packages from the apt history. > > > > Today I totally removed git and tried to install everything again > > with > > the same instruction. The same misbehavior did happen! > > This is best reported to Debian because it's a packaging problem, but > I'll tell you what's happening. > > By default, Debian installs recommends. When you specified git-all, > you > also asked to install git-daemon-run or git-daemon-sysvinit, and the > former is the preferred option. So that causes systemd to be > uninstalled and sysvinit to replace it instead, and because GNOME on > Debian is configured to require systemd and not to work with > sysvinit, > GNOME gets removed. > > There are a couple problems here. > > First, you don't want to install git-all as a package because it has > this behavior, and git-all should not be configured such that > installing > it causes your init system to be changed. That is a serious > packaging > problem. > > Second, GNOME should gracefully work with whatever init system is on > the > system, so that users can pick the one that's right for them. Non- > Linux > systems don't even have systemd, so GNOME should be appropriately > packaged so it doesn't have this problem. > > None of this has anything to do with Git the project, which provides > source tarballs only and relies on distributors to build binary > packages. All of these are Debian packaging problems and should be > reported in a series of bugs to Debian (usually via reportbug). > > In the meantime, you should install the git and git-man packages if > you > want to use core Git, and optionally git-email, git-svn, or git-cvs > if > you want various other parts. You don't really want to run git- > daemon > outside of a controlled environment because the Git protocol provides > no > authentication or encryption and you shouldn't expose such services > publicly.