LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-08-2017, 08:05 AM   #1
kinns91
LQ Newbie
 
Registered: Jan 2017
Posts: 2

Rep: Reputation: Disabled
Question Not able to update anything on my Linux Mint 18


Hello people,I am a new user of Linux Mint 18 Sarah.Have been using without any major issues for the past 3 months.
But from a month around,whenever I used to install updates,I would get an error window saying you have broken packages,which is:

You have 958 broken packages on your system!

Use the "Broken" filter to locate them.


I tried fixing the broken packages in the Synaptic Package Manager,reading various solutions listed in the forums,but there would be an error again.Today,I tried to update using terminal using the command: sudo apt-get update.This is what I got:

Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/atareao/atareao/ubuntu xenial InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:5 http://packages.linuxmint.com sarah InRelease
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable Release
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit:10 http://ppa.launchpad.net/atareao/telegram/ubuntu xenial InRelease
Get:11 http://packages.linuxmint.com sarah Release [24.1 kB]
Hit:12 http://ppa.launchpad.net/noobslab/apps/ubuntu xenial InRelease
Hit:14 http://ppa.launchpad.net/quiterss/quiterss/ubuntu xenial InRelease
Get:15 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Fetched 331 kB in 37s (8,736 B/s)
Reading package lists... Error!
E: Read error - read (5: Input/output error)
W: You may want to run apt-get update to correct these problems
E: The package cache file is corrupted
 
Old 01-08-2017, 01:55 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 12,832

Rep: Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676Reputation: 1676
Are you running that as root?
 
Old 01-08-2017, 04:06 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Differences between Update Manager, Synaptic, and `apt-get upgrade` said xenopeek:
"Upgrading through Synaptic has been disabled on Linux Mint. To the best of my recollection this was done because there is a rare but severe bug in Synaptic that can effectively cause uninstallation of the user's operating system. The list of available package upgrades and changelogs can be viewed in it though, but it can't access the changelogs from all standard Linux Mint repositories."

I've heard that using synaptic and apt on Mint is been known to trash systems. I don't use synaptic.

I don't know about no 958 packages, but if you check via the Update Manager (as recommended) I'd like to hear what
that interface says. I trust xenopeek's technical expertise enough. He certainly knows what he's talking about.

The above article was written after the release of LM 18.

Good luck.

Last edited by Habitual; 01-08-2017 at 04:07 PM.
 
Old 01-08-2017, 06:47 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,386
Blog Entries: 27

Rep: Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405Reputation: 5405
Quote:
I tried fixing the broken packages in the Synaptic Package Manager,reading various solutions listed in the forums,but there would be an error
What specifically did you try? The more detail you provide, the easier it is for others to help you.

Have you tried this command, as root?

Code:
apt-get -f    <---for "--fix-broken"
If not, try it and post the output here, being sure to enclose it in "code" tags, which become available when you click the "Go Advanced" button at the bottom of the compose post windows.
 
Old 01-09-2017, 04:43 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Remove all those PPAs from your software sources.?

I trust xenopeek.

Last edited by Habitual; 01-09-2017 at 07:39 AM.
 
Old 01-09-2017, 10:59 AM   #6
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,323
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
kinns91,

As advised by Niely on LMF, I think you would be much quicker backing up all your personal data from your home folder, plus any bookmarks, email profile folders (not applicable to web mail) etc to an external drive and then reinstalling Linux Mint.

A fresh installation takes very little time in any case.
 
Old 01-10-2017, 12:34 PM   #7
crazypenguin
Member
 
Registered: Jun 2002
Location: Idaho
Posts: 98

Rep: Reputation: 11
The major issue at this point is not how to fix the problem of broken packages, but what were the actions that caused the broken packages in the first place. Like the previous poster recommended, backing up your data, and reinstalling the OS would be the be the best approach IMO at this point.

All this being said, the OS still may be repairable with the following steps. But do so at your own risk.

1) Get rid of all those PPA's. While you may think they are nifty programs, they do you little good if that is what is trashing your system.

2) Make sure Synaptic, Update Manager, Software Manager are closed so Aptitude can get an exclusive lock on the process.

3) Run the following commands in a terminal window in the sequence as I have them outlined.

Run the first command and wait for it to finish.
Code:
sudo aptitude update && sudo aptitude install gtkorphan
Next run this command and wait for it to complete.
Code:
sudo aptitude update && sudo aptitude upgrade
And finally run the last command which clears out the broken packages.
Code:
sudo aptitude -f
Good luck to you on your journey to learning and using Linux.

Last edited by crazypenguin; 01-10-2017 at 01:23 PM.
 
Old 01-10-2017, 05:51 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What I do know is that Synaptic on Linux Mint is patched to remove the package upgrade functionality from it, because of the bug that is in Synaptic's upgrade logic that can cause your entire operating system to be uninstalled by it if you use it to upgrade your system.[1]
In a word, don't use it.

Re-install.

Last edited by Habitual; 01-10-2017 at 06:07 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to update linux mint from 14 to latest? breadbin Linux - Newbie 10 05-02-2016 12:31 PM
Thunderbird following Linux Mint 17.3 update Bob Fletcher Linux - Software 0 12-15-2015 01:45 AM
Linux Mint 16 Fail to update: HarrisCreekCentral Linux - General 3 09-20-2015 09:10 PM
[SOLVED] skype update for linux mint not working septuagenarian Linux - Newbie 8 10-09-2014 10:39 AM
Mint Update has stopped loading the notification icon at startup (Mint 10) icekool Linux Mint 6 12-19-2010 07:49 AM

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

All times are GMT -5. The time now is 04:26 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