-1

The First time linux user with rasberry pi 3 running rasbian, performed sudo apt-get update, then sudo apt-get upgrade, then sudo reboot.

Once I rebooted my system, performed sudo apt-get dist-upgrade.

This ran for about 15 minutes then i got a script saying something about two things being similar and wanting me to choose what to do.

The options were replace...keep the old one...and show the differences between the two. I selected to show me the difference between the two (which i did by entering 'D' and pressing enter. the following showed up in the window:

    --- /etc/lightdm/lightdm.conf   2016-09-23 03:52:37.000000000 +0000
    +++ /etc/lightdm/lightdm.conf.dpkg-new  2016-10-13 12:03:14.000000000 +0000
    @@ -96,7 +96,7 @@
     #xdmcp-key=
     #unity-compositor-command=unity-system-compositor
     #unity-compositor-timeout=60
    -greeter-session=pi-greeter
    +#greeter-session=example-gtk-gnome
     greeter-hide-users=false
     #greeter-allow-guest=true
     #greeter-show-manual-login=false

~
(END)

Not sure what to do. Any help is appreciated.

migrated from askubuntu.com Feb 8 '17 at 12:30

This question came from our site for Ubuntu users and developers.

  • should I just sudo reboot? – stouffy Feb 7 '17 at 23:59
  • Keep the old one. – user535733 Feb 8 '17 at 4:08
  • Unfortunately your distribution is no (official) flavour of Ubuntu and off topic here. You can ask questions about any Linux distribution over on Unix & Linux. There are also a StackExchange sites specifically for Debian, elementary OS (beta), Fedora, and Raspberry Pi. – David Foerster Feb 8 '17 at 11:15
1

Short answer: Accept the changes — hit Q then A when presented with the options again. You should do this if:

  • you're a new user and don't know what this means, or:
  • you're pretty sure you hadn't made changes to that file.

If you accept changes, you're going with Raspbian's recommended settings. These have evolved over time, but generally represent a community default. This means you don't have to remember obscure settings you've tweaked, and your system is far more likely to run the way it's supposed to. This is important for when you ask other questions, as it's generally assumed that you've kept your system up to date and in line with the package managers' recommendations. Supporting highly customized systems is harder.

Longer explanation: What you're being shown here is what's known as a context diff. It's the output of a utility (diff, short for differences) that compares two files line by line and shows you the differences. Diffs are use a lot in Linux, so you'll get used to seeing them. They're used to distribute changes and updates or patches — as in mending something by patching over a hole — with the patch utility.

So what's the diff telling you? It starts with a header:, which is of only mild interest to most people:

--- /etc/lightdm/lightdm.conf   2016-09-23 03:52:37.000000000 +0000
+++ /etc/lightdm/lightdm.conf.dpkg-new  2016-10-13 12:03:14.000000000 +0000
@@ -96,7 +96,7 @@

This tells you that:

  1. the file that it wants to change (marked ---) is /etc/lightdm/lightdm.conf, and the existing one is from September 2016;
  2. the replacement file (marked +++) is from the dpkg process, which is Debian's package manager, and the replacement is from October 2016; and
  3. the changes are around line 96 in /etc/lightdm/lightdm.conf.

The really critical part of your example are just two lines:

-greeter-session=pi-greeter
+#greeter-session=example-gtk-gnome

This says:

  1. delete (-) the existing line greeter-session=pi-greeter
  2. replace (+) it with #greeter-session=example-gtk-gnome.

The replacement line starts with a #, which has the effect of commenting the line out. So all we're doing is not setting the greeter-session option. Practically, this is down to the updates to Raspbian late last year to give it a more streamlined user interface.

The rest of the lines are just there for context. They don't often help much in configuration files, but for code and text, they can be very helpful. (The END line also tells you there aren't any more differences; often there are more than one.)

You might not always want to accept changes. For instance, I use a backup tool (rbackup) that I've had to customize for my system. If Raspbian updates rbackup, and I accepted their changes to its configuration file, my daily backups would stop. So for me, every time rbackup is updated, I need to remember to Keep my changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy