LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Broken Packages (https://www.linuxquestions.org/questions/linux-software-2/broken-packages-4175628349/)

69Rixter 04-24-2018 04:12 PM

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.

:banghead:Rick

hydrurga 04-24-2018 05:15 PM

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.

69Rixter 04-24-2018 06:14 PM

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:

69Rixter 04-24-2018 06:37 PM

RE: hydruga

No go, my friend: sudo rm -rf 0018 rm cannot remove '0018': I/O error

hydrurga 04-24-2018 08:37 PM

Quote:

Originally Posted by 69Rixter (Post 5847125)
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).

frankbell 04-24-2018 09:06 PM

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.

69Rixter 04-25-2018 05:16 PM

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

frankbell 04-25-2018 08:00 PM

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!)

69Rixter 04-25-2018 09:19 PM

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

69Rixter 05-01-2018 08:26 PM

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


All times are GMT -5. The time now is 08:49 PM.