LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2020, 11:54 AM   #1
Brigadier
LQ Newbie
 
Registered: Dec 2015
Posts: 15

Rep: Reputation: Disabled
Update manager stopped working


Mint 18.1 Cinnamon 64-bit v.3.2.7
Simon is me, the user
Total newbie, so I’ll admit to blundering around.

The problem: Update manager suddenly not working. No updates listed. Initially it started as a red cross.

Clicking on the update icon>information gave this:

09.08@17:15 ++ Launching mintUpdate
09.08@17:15 ++ Starting refresh
09.08@17:15 ++ Initial refresh will happen in 10 minutes, 0 hours and 0 days
09.08@17:15 -- Exception occurred in the refresh thread: <class 'subprocess.CalledProcessError'>

It then greyed out completely, after which update icon>information gave this:

09.08@17:15 ++ Launching mintUpdate
09.08@17:15 ++ Starting refresh
09.08@17:15 ++ Initial refresh will happen in 10 minutes, 0 hours and 0 days
09.08@17:15 -- Exception occurred in the refresh thread: <class 'subprocess.CalledProcessError'>
09.08@17:25 ++ MintUpdate is in tray mode, performing initial refresh
09.08@17:25 ++ Starting refresh (including refreshing the APT cache)
09.08@17:25 ++ Auto-refresh will happen in 0 minutes, 2 hours and 0 days
09.08@17:47 ++ Starting refresh (including refreshing the APT cache)

In Terminal:

$ mintupdate gives me:

$ Command '/usr/lib/linuxmint/mintUpdate/checkAPT.py --use-synaptic 48234513 2>/dev/null' returned non-zero exit status 139
-- Exception occurred in the refresh thread: <class 'subprocess.CalledProcessError'>

$ sudo apt-get update gives me:

[sudo] password for x: (I insert my password which I assume is rejected)

Sorry, try again.

$ apt-get update gives me:

W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
simon@simon-W25CSW ~ $

$ apt-mark showhold gives nothing at all.
 
Old 09-09-2020, 05:02 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
You were right to try with apt in order to troubleshoot this problem, but you seem to have given sudo the wrong password. How many times did you try this? Running apt as yourself gives the expected list of errors because non-root users don't have access to the local apt databases.

What happens if you type sudo su and give your password? That should give you a root prompt from which you can run apt.
 
Old 09-10-2020, 10:00 AM   #3
Brigadier
LQ Newbie
 
Registered: Dec 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
$ sudo so (password) gives me Sorry, try again.

I'm now guessing that either something has become corrupt or that there is a different password for admin that is now lost.

Either way, I've now turned off auto updates completely, and may simply install the latest version of Mint. Interestingly, with the updates turned off, the machine now runs at twice the speed.
 
Old 09-10-2020, 10:15 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
It's "su" not "so". But yes, you do seem to be trapped in a loop. One way around this would be to boot from your installation CD and use it as a rescue disc. That's certainly what I would do in your place. But you might not feel comfortable doing something so hands-on .

I haven't used Mint for a long time. It's based on Ubuntu so I assume that it has no separate root password. On Ubuntu-like systems, the first user has full sudo rights and their password is the only one that matters. Can you remember if you were asked for a separate root password when you installed the system?

Don't just turn off updates, at least not permanently! Out-of-date software is a security risk. It would be better in that case to reinstall, although with Linux we try to avoid that where possible. As I've said, most Linux problems can be fixed from a suitable rescue disc, but that's tough going for a complete novice.

I do not like autoupdates on principle. That's the Microsoft way of doing things. Running an update by hand once a month with apt or synaptic is much safer.
 
Old 09-10-2020, 11:07 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,139

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The problem might be that you are using version 18.1 and 18 is currently at 18.3. Since 18 is only supported until next April, you might be better starting again with version 20.

There is no admin password with Mint, so sudo su should work. It can't be that you've forgotten the password, because you used it to log in. Can you access synaptic and use that to update?
 
Old 09-10-2020, 11:18 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
I'm beginning to wonder if the update screwed up his sudoers file. That would create a fatal loop, wouldn't it?
 
Old 09-10-2020, 12:18 PM   #7
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Occam's Razor would suggest that he is entering the wrong password. Perhaps the caps lock is engaged on the keyboard. Perhaps he's misremembering or mistyping it.
 
Old 09-10-2020, 02:29 PM   #8
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,173

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Run the command "groups" to list all the groups your user account is in, if you don't see sudo listed then you are not in the group.

Boot into recovery mode from grub, which should drop you into a root shell were you can add yourself to the sudo group by editing /etc/group and adding your user account to the sudo line.
 
Old 11-03-2020, 11:56 AM   #9
Brigadier
LQ Newbie
 
Registered: Dec 2015
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks to all for replies. I've decided to wipe the machine and install the latest version.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] After latest Network-Manager update, USB Wi-Fi access point stopped working Jefferson Slackware 2 03-06-2020 09:54 PM
[SOLVED] Firefox, Package Manager and Update Manager stopped working after updates septuagenarian Linux - Newbie 50 04-05-2018 06:37 AM
update manager and other software stopped working in mint 17.1 cinnamon mintisurgeon Linux - Newbie 3 01-27-2015 04:08 AM
Update manager stopped working , cpax Linux - Newbie 11 11-07-2011 11:41 AM
compizconfig settings manager stopped working after update Fusspils Linux - Software 1 12-29-2007 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration