last message on the screen at shutdown is "Checking for running unattended-upgrades:"

Bug #803709 reported by Ed Page
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
plymouth (Ubuntu)
Confirmed
Medium
Unassigned
unattended-upgrades (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

Every once in a while since upgrading from 10.04 to 11.04 my computer will hang on shutdown while showing a text console. This isn't fun for when shutting down unattended.

The last message on the screen is "Checking for running unattended-upgrades: _"

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: upstart 0.9.7-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: fglrx
Architecture: i386
Date: Wed Jun 29 20:41:16 2011
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ed Page (ed-page) wrote :
Revision history for this message
Bonzer (bonzer) wrote :

Do you have any remote network shares mounted?

I also recently started getting this symptom on Ubuntu 11.04. where it hangs on shutdown at the line "Checking for running unattended-upgrades" for maybe 5 - 10 minutes, although it does eventually shutdown if you wait long enough. I found doing "shutdown -h now" on the terminal works immediately. It was only slow at shutting down when using the Ubuntu "Shutdown" menu option.

It started after I changed my network settings. I use wired Ethernet. I eventually discovered it seems to be something to do with having a remote network share and at what stage in the shutdown process Ubuntu decides to disconnect/disable the network.

I found two fixes:

1) If you dismount remote network shares prior to shutting down, it shuts down immediately. I have one CIFS share set to auto-mount at boot in my fstab.
2) In "Network Connections", I had the "Available to all users" check box unticked for my Ethernet card. As soon as I ticked this box, it started shutting down immediately without needing to manually dismount my CIFS share first.

Changed in upstart (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve Langasek (vorlon) wrote :

It may be that the reason your shutdown stops there is because there are unattended upgrades in progress at the time, and so it waits for them to finish.

Your screenshot definitely shows two related bugs:

 - plymouth is failing to launch the splash screen for you. This is a bug in plymouth (though I don't know what might be causing it).
 - unattended-upgrades is configured to report the status of any running upgrades via plymouth, but this *isn't* where the "checking" message is sent, that message is sent to the console. Even though we want proper plymouth integration and we want the message to show on the splash at shutdown, unattended-upgrades should *also* send status to the console, for consistency there.

summary: - Hang on shutdown
+ last message on the screen at shutdown is "Checking for running
+ unattended-upgrades:"
affects: upstart (Ubuntu) → unattended-upgrades (Ubuntu)
Changed in unattended-upgrades (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in plymouth (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plymouth (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Purves (chris-northfolk) wrote :

This affects me as well. I'm running a clean install of Mythbuntu 12.04.

Revision history for this message
Brian Murray (brian-murray) wrote :

Could anybody experiencing this bug please post the contents of '/etc/apt/apt.conf.d/10periodic' on the system with the issue? Thanks in advance.

Changed in unattended-upgrades (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Gábor J.Tóth (ubiadmin) wrote :

My 10periodic has the following lines:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

The system is also a clean 12.04, running within a vbox.

Revision history for this message
Mélodie (meets) wrote :

Hi,
I a custom Ubuntu 12.04.4 I don't have it hanging but it is terribly slow to go to the next step. I also have

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";

in the 10periodic file.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.