[SOLVED] Unable to shutdown

Questions about SolydX and SolydK installation.
User avatar
grizzler
Posts: 2197
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Unable to shutdown [edited]

Postby grizzler » 05 Mar 2015 19:41

Getting rid of the references to lmdexfce-artwork, which were causing problems, is described here: http://forums.solydxk.nl/viewtopic.php? ... fce#p50611 (starts a couple of positings before that one, but that's where Arjen posted the solution). But removing those items manually seems to have already fixed that for you.

The garbage you mention are packages that have been removed but not purged (indicated by 'rc' in the first column), i.e. there are still some configuration files present on your system, but the executables should be gone. If you want to get rid of that, try

Code: Select all

apt-get purge $(dpkg-query -l | sed -n 's/^rc\s*\(\S*\).*/\1/p')
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Unable to shutdown [edited]

Postby Zill » 05 Mar 2015 19:47

tacos40 wrote:...I have tried all this several times (with and without synaptics) and no way to upgrade to a functioning system
In one of those iterations (always recovering from backup):

a) apt-get -s dist-upgrade (without the "s" ) --> fails
b) apt-get -s -f install (without the "s" ) --> fails
Synaptic can be useful to identify packages you have held so I suggest you run this and hit the "Status" button and then select "Pinned" to show all your held packages. Go to each held package in turn and go to the "Package" menu and deselect "Lock version" to unhold all your packages.

From this point on, Synaptic is just another level of confusion we can do without so I suggest you close it and just stick to apt-get for now.

Please appreciate that when you use the "-s" option with apt-get, this simply simulates the command which means that no changes are actually made to your system.

As you do actually wish to upgrade your system you need to use the actual dist-upgrade command, not just the simulation.

Your output from "apt-get -s dist-upgrade" looks OK to me and so I suggest you could actually run this "for real" without the "-s" option.

Similarly, you can also run "apt-get -s -f install" without the "-s" option and this will help fix any broken packages.

p.s. I see from your output that you appear to be running as root. This is not necessary for your SolydX system and it is far safer IMHO to always run as a user and simply add the sudo prefix to any commands you wish to run as root.

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Unable to shutdown [edited]

Postby tacos40 » 05 Mar 2015 19:55

Wow grizzler, that seems a nice command :o (I admit I can hardly undertand it :? ) I will use it to clean further... YEP ;)

Before that, and after removing 'diversion' above... I have been able to further upgrade, so at this moment I have... :D

Code: Select all

# apt-get -s dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  grub-common grub-pc grub-pc-bin grub2-common
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst grub-pc [2.00-22] (2.02~beta2-20 Debian:testing [amd64]) []
Inst grub-pc-bin [2.00-22] (2.02~beta2-20 Debian:testing [amd64]) []
Inst grub2-common [2.00-22] (2.02~beta2-20 Debian:testing [amd64]) []
Inst grub-common [2.00-22] (2.02~beta2-20 Debian:testing [amd64])
Conf grub-common (2.02~beta2-20 Debian:testing [amd64])
Conf grub2-common (2.02~beta2-20 Debian:testing [amd64])
Conf grub-pc-bin (2.02~beta2-20 Debian:testing [amd64])
Conf grub-pc (2.02~beta2-20 Debian:testing [amd64])
Systemd is 215-12 and problems I suffered with intermediate 208-8 have not re-appeared :-)
(e.g: I can shutdown pretty fast)

...

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Unable to shutdown [edited]

Postby tacos40 » 05 Mar 2015 20:12

Zill:

Thank you for your help as well !!

Clarification: Yes, I have used dist-upgrade without the "s" :

Code: Select all

apt-get dist-upgrade
... at least in 2 iterations for really upgrading (instead of simulating).
But they have failed with no clear output for me (assorted and long
but I think lots of dpkg errors returned, like the 'diversion' one)

NOW... upon udating step by step AND after cleaning the 'diversion'
my system is in a position I would tell the abovementioned "dist-upgrade"
would work... but I am not to run the risk, as grub-pc is involved and
messaging is not clear enough.

I know where my grub is (sda8, not sda) and I prefer doing it manually,
given my (bad) experience leaving alone the "dist-upgrade" suggesting
to remove xserver-org* in first iteration; or leaving without possibility
to mount disks from thunar (some about udisks2.pkla); or removing vmlinux 3-16-0.4,
etc, what is worse, leaving system badly injured

User avatar
grizzler
Posts: 2197
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: Unable to shutdown [edited]

Postby grizzler » 05 Mar 2015 20:20

So all you have left to do now is the grub update? Ordinarily I would say just go for it, but as you seem to have grub installed in a partition boot record rather than the master boot record (not a good idea, in my opinion), I think you are right to be careful with this.

If this is the only grub update of this entire session, you will probably be asked (again) where to install grub, i.e. to which device. Make very sure to answer that correctly, as not doing so can cause serious boot problems (there was a problematic grub update recently, but I forget which version that showed up in exactly).
I would even suggest it may be wise to trigger that question in case the upgrade doesn't present it automatically, by issuing

Code: Select all

dpkg-reconfigure grub-pc
Frank

SolydX EE 64 - tracking Debian Testing

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Unable to shutdown [edited]

Postby tacos40 » 05 Mar 2015 21:34

Well, I went bravely forward with ...

Code: Select all

# apt-get dist-upgrade
...a bit afraid of GRUB-PC questions (in fact, I think a question YES/NO is shown incorrectly, but not dangerous)...
and finally SUCCESS, the system is updated 100% (well, I think so) :D

Code: Select all

# apt-get -s dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
In my multiboot system, MBR (sda) is owned by the GRUB of Fedora 20, a distribution that
in my case have never failed. sda8 is for SolydX / Debian. In fact, I have pseudo chains
of GRUB, so I can enter fedora grub tree, choose solydx grub tree, then boot whatever
O.S. I want. No issues :-)

Thank you ALL for yor help.
Maybe later I will comment post-mortem what happened with this, i.e. WHY so hard to
upgrade in MY case. Maybe the key was to remove some solydx-adjustment package or
so, I am not sure; or maybe only the "diversion". Unclear.

I will put this as SOLVED.

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: [SOLVED] Unable to shutdown

Postby tacos40 » 11 Mar 2015 09:08

All running stable and updatable, so far :-)

For the record: one of the things I did... was to remove any 'plymouth' related package


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 8 guests