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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2018, 04:12 PM   #1
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Rep: Reputation: 10
Broken Packages


I've been trying to find/fix a broken package(s). Syn. Pkg. Mgr. won't let me in and suggests 'dpkg --configure -a' to which I receive: dpkg: error: failed to open package info file '/var/lib/dpkg/dpkg/updates/0018' for reading: Input/output error. Wow!! Never had so much trouble w/ linux.

Rick
 
Old 04-24-2018, 05:15 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
That's strange. Usually the updates folder is in /var/lib/dpkg, not /var/lib/dpkg/dpkg. I assume that you mistyped that?

Anyway, what you could try doing is:

Code:
cd /var/lib/dpkg/updates

sudo rm -rf 0018
then try dpkg --configure -a again.
 
Old 04-24-2018, 06:14 PM   #3
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Original Poster
Rep: Reputation: 10
RE: hydrurga

No sir, whenever possible I copy/paste. Unless the command was incorrect?(IDK) Alright, I'll use the commands you gave and get back here w/ results. Oh...correct me if I'm wrong, but wouldn't/shouldn't "updates" repair packages?

THANX:
 
Old 04-24-2018, 06:37 PM   #4
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Original Poster
Rep: Reputation: 10
RE: hydruga

No go, my friend: sudo rm -rf 0018 rm cannot remove '0018': I/O error
 
Old 04-24-2018, 08:37 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by 69Rixter View Post
RE: hydruga

No go, my friend: sudo rm -rf 0018 rm cannot remove '0018': I/O error
That sounds like filesystem corruption to me.

You should try running an offline fsck on the filesystem.

If that comes up clear, then try deleting the directory offline (i.e. having booted up from e.g. a removable media, not from the operating system itself).

Last edited by hydrurga; 04-24-2018 at 08:39 PM.
 
Old 04-24-2018, 09:06 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Try starting Synaptic from the command line. Perhaps it will throw some useful error messages. If so, post them, being sure to surround them with "code" tags, which become available when you click the "Go Advanced" button beneath the "compose post" window.
 
Old 04-25-2018, 05:16 PM   #7
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Original Poster
Rep: Reputation: 10
RE: EVERYONE

Since I'd been having sssoooo much trouble, I wiped 17.3x and started over with 18.3x. When running updates, I came across a 'suggestion" from the updating program which said anyone running a "live" version should 'apt-cdrom'. I did so and, so far(?), the "live" seems to running like a desktop. Hope this was the answer to all the lags/freezes AND broken pkgs. I was experiencing. Should it 'break down", then rest assured, I'll be back here (you've been warned!!!) Ahmmm.... I'm going to mark this thread solved, although I'm not sure the way I solved the problem was really 'the answer"???

TNX ALL

Rick
 
Old 04-25-2018, 08:00 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,311
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Maybe not the answer, but certainly an answer. Nevertheless, some of the suggestions you got in this thread may help someone else.

(I can understand how frustration can lead to starting over. Sometimes troubleshooting gets to be more trouble than its worth!)
 
Old 04-25-2018, 09:19 PM   #9
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Original Poster
Rep: Reputation: 10
Simple repair for 17.3x

RE: frankbell

Ah....yes. We should coin a slogan such as " troubleshooting is too much trouble"! But, clearly, not in the Linux spirit. I wonder had I discovered apt-cdrom before I'd re-installed, if it would have been the remedy to all the maladies I was experiencing? So, your suggesting I leave the thread open?

Rick
 
Old 05-01-2018, 08:26 PM   #10
69Rixter
Member
 
Registered: Jan 2014
Location: central Ohio
Distribution: BionicPup 8 & LM 19.1X
Posts: 320

Original Poster
Rep: Reputation: 10
TO; Everyone Who Has Replied

I'm not so sure I've "solved" the problem. Here's what I did: format pendrive (again) very carefully selected a legit D/l site and D/l'ed 18.3x. Ran updates immediately and when doing so, came across a "suggestion" in the terminal report suggesting I use apt-cdrom and designate the pendrive so it can run APT. It "seems" to be running much better, although, once in a while, it does still lag. Not nearly as much as previous. Once I discover what the entire command for apt-cdrom is, I'm guessing it'll run much smoother. Anyone know what the entire command would be for apt-cdrom to include the pendrive/'live" O.S? I'm pretty certain I don't want to assign it to a USB port.(?)

TNX
 
  


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] Broken Packages gillsman Linux - Newbie 2 09-30-2014 04:13 PM
Broken packages bachawiss Linux - Software 1 05-30-2012 06:41 PM
Broken packages hraposo Debian 2 08-13-2006 01:55 PM
Broken packages mcnearcj Ubuntu 3 08-01-2006 01:56 PM
Broken Packages Kujila Linux - Software 2 02-01-2004 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 PM.

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