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 08-07-2019, 07: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, 12:05 PM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,289

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 12:06 PM.
 
Old 08-07-2019, 02:19 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,673

Rep: Reputation: 204Reputation: 204Reputation: 204
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, 02:23 PM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,673

Rep: Reputation: 204Reputation: 204Reputation: 204
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, 03: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, 05:58 AM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: Currently: openSUSE, Raspbian, Slackware. Formerly: CentOS, MacOS, Red Hat. Other: Solaris, Tru64
Posts: 1,673

Rep: Reputation: 204Reputation: 204Reputation: 204
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


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
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 01:03 PM
Print to CUPS server fails with "/usr/lib/cups/filter/foomatic-rip failed" Aule Linux - Newbie 6 09-27-2013 10:08 AM
CUPS printing error: ="/usr/local/libexec/cups/filter/rastertosamsungspl failed ted_chou12 Linux - Software 0 08-04-2012 06:22 AM
Freelink debian on Buffalo NAS cups not working /usr/lib/cups/filter/hpcups failed linuxmandrake Debian 0 03-23-2010 05:45 PM
[SOLVED] cups "/usr/lib/cups/filter/foomatic-rip failed" error wufo Slackware 4 01-31-2010 03:20 PM

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

All times are GMT -5. The time now is 04:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration