LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-07-2019, 06:03 AM   #1
Nacho123
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Rep: Reputation: Disabled
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
 
Old 08-07-2019, 11:05 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,485

Rep: Reputation: Disabled
Was it the ARM based version?

I thought Raspbian had cups included in the distro(?).

Probably easiest just to re flash your micro SDHC card.

Last edited by fatmac; 08-07-2019 at 11:06 AM.
 
Old 08-07-2019, 01:19 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by fatmac View Post
Probably easiest just to re flash your micro SDHC card.
After, of course, saving off any system configuration files you spent time modifying after the initial install, your "/home/*', etc.
 
Old 08-07-2019, 01:23 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Nacho123 View Post
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.
 
Old 08-07-2019, 02:18 PM   #5
Nacho123
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-08-2019, 04:58 AM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I assume that the message being in Swedish was normal for you. :^D

Quote:
Originally Posted by Nacho123 View Post
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.
 
  


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
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 12:03 PM
Print to CUPS server fails with "/usr/lib/cups/filter/foomatic-rip failed" Aule Linux - Newbie 6 09-27-2013 09:08 AM
CUPS printing error: ="/usr/local/libexec/cups/filter/rastertosamsungspl failed ted_chou12 Linux - Software 0 08-04-2012 05:22 AM
Freelink debian on Buffalo NAS cups not working /usr/lib/cups/filter/hpcups failed linuxmandrake Debian 0 03-23-2010 04:45 PM
[SOLVED] cups "/usr/lib/cups/filter/foomatic-rip failed" error wufo Slackware 4 01-31-2010 02:20 PM

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

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