Skip to main content

Debian can't shutdown/reboot immediately due to Unattended-upgrades function

OS: Debian testing ( Stretch )

Recently update, I encounter shutdown/reboot stucking problem: the cursor flashing on the top left corner in black screen. It takes a long time to finish then I need to press the power button to finish it every time. Really boring.

First I installed the gnome-power-manager package, not sure remove it accidentally or didn't install from the beginning. Shutdown to check, Debian will show the proceeding message. Then, I found below message:

'Unattended-upgrade in progress during shutdown:
A start job is running for unattended upgrades shutdown, (1s in 15 mins)'

How come the unattended upgrade? I prefer to auto run upgrade when start and want to close the laptop ASAP. Maybe it's useful for server, just waste of time for laptop.

I checked the Debian WIKI for unattended upgrades services and found there are 2 packages involved: unattended-upgrades and apt-listchanges. Check the log file under /var/log/unattended-upgrades/, no record for upgrades, but reboot for test, still stuck on the service for 15 mins.  So I make decision to remove it to save my time:

sudo apt remove unattended-upgrades


Then solved. Power-off/Reboot quickly, perfect.

Comments

  1. Does anyone know which is the best product among those listed on this site?Gnomes on a Swing

    ReplyDelete
  2. Welcome to Slotland Casino | JamBase
    Check out our Casino slot tournaments and 이천 출장안마 find your way to winning! Our casino is open 24/7 and 삼척 출장안마 boasts 3000+ 김제 출장안마 games. Make 남원 출장샵 a deposit and 공주 출장샵 start playing today!

    ReplyDelete

Post a Comment

Popular posts from this blog

Upgrade BeautifulSoup4 to compatible with Python 3.6

After upgraded to Python 3.6 from 3.5, I encountered BeautifulSoup (bs4) error, such as 'ImportError: cannot import name 'HTMLParseError'. Seems there's compatible problem for BeautifulSoup 4 version. Solution: Upgrade beautifulsoup 4 version to 4.6.0 Commands: $ pip3 install --upgrade beautifulsoup4 Deep in: Install pip3 command: $ sudo apt install python3-pip

Atom community packages recommendation for Python development

Below are Atom community packages I installed for Python development. They are covered most of functions u need. Take this post as an backup.  

Solved: Pyperclip could not find a copy/paste mechanism for your system.

OS: Debian 9 Python version: 3.5 After import pyperclip module, encounter error message ' Pyperclip could not find a copy/paste mechanism for your system. '. Solution: install xsel utility $ sudo apt install xsel then reboot Python IDLE3, import pyperclip, solved. *************** Install pip/pyperclip: $ sudo apt install python3-pip $ sudo pip3 install pyperclip