git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git install crashed nearly whole System

From
CSChristian 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.
Previous: brian m. carlsonNext: brian m. carlson
Message 5 of 11 in “Git install crashed nearly whole System”
  1. Christian StrasserMar 14, 2021
  2. Santiago Torres AriasMar 14, 2021
  3. Christian StrasserMar 18, 2021
  4. brian m. carlsonMar 14, 2021
  5. Christian StrasserMar 18, 2021
  6. brian m. carlsonMar 18, 2021
  7. Jeff KingMar 18, 2021
  8. brian m. carlsonMar 18, 2021
  9. Christian StrasserMar 19, 2021
  10. Randall S. BeckerMar 14, 2021
  11. Christian StrasserMar 18, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.