Failed to install Cups, cant remove (Raspberry PI crashes)
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Failed to install Cups, cant remove (Raspberry PI crashes)
Hi!
I tried installing cups and headed outside while it installed, and the installation failed. Now i've tried to fix it but nothing works, so i tried removing it.
I've tried sudo apt-get remove cups
I've done the same command with different alternatives like purge, purge -remove etc etc but nothign works.
Now it tells me i need to run "sudo dpkg --configure -a" to manually fix the problem, however when i do this the computer crashes and reboots.
Ive tried manually removing the folder but this didnt work either.
Does anyone know a fix? I cant remove the package or anything
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800
Rep:
Quote:
Originally Posted by Nacho123
Hi!
I tried installing cups and headed outside while it installed, and the installation failed. Now i've tried to fix it but nothing works, so i tried removing it.
I've not seen apt mess up this badly. What was the error message you saw when it failed? Probably too late to grab the exact text but, in general, what did it complain about? (Surely it wasn't "General MFU. Bye.")
Have you tried forcing the cups installation? Sorry... I'm not near any Debian-based boxes at the moment so I can't look up the way this might be accomplished.
Hi!
I did just as Fatmac said and started from scratch with my computer but the problem persisted.
When i reinstalled it crashed during the installation, which I guess it did when i went out too. The exact error message I got when I ran the apt command was in swedish, and it was:
"E: dpkg avbröts. Du måste köra "sudo dpkg --configure -a" manuellt för att korrigera problemet.
But nothing worked, but randomly I thought, maybe i should unplug my mouse etc because it might be taking too much power when i run the command (i dont know if this was just a coincidence or it actually was the case), and as soon as i did and retried the commands they went through without a crash!
I dont know if this was an actual "fix" or I was just lucky
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800
Rep:
I assume that the message being in Swedish was normal for you. :^D
Quote:
Originally Posted by Nacho123
But nothing worked, but randomly I thought, maybe i should unplug my mouse etc because it might be taking too much power when i run the command (i dont know if this was just a coincidence or it actually was the case), and as soon as i did and retried the commands they went through without a crash!
I dont know if this was an actual "fix" or I was just lucky
Did you, by any chance, note the date/time when CUPS installations were failing? You might get some idea of what went wrong in "/var/log/dpkg.log" (or one of the older log files "/var/log/dpkg.log.1", etc.)
As for the mouse "fix": I can't imagine the mouse drawing so much power that the system would behave like this. But I suppose it could have been at fault if things worked when you unplugged it. Makes me wonder if you'll have future problems if you plug the mouse back in.
Q: Do you power cycle the Pi by unplugging/replugging the power supply from the Pi board or by unplugging the supply from the AC power? I've never liked that mini USB power connector---always seemed too delicate/flaky to me. Perhaps the act of unplugging the mouse "jiggled" your Pi's power cable enough to make an intermittent connection in the power cable or connector "go away" for the time being. I've been unplugging the supply from the AC when I need to power cycle. No wierd system problems. So far, anyway.
Good to hear that you're finally able to print from your Pi.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.