Also LPD should be CUPS. Look for them in the upstart directory. ls -l /etc/init/ | grep -E "lpd|cups"
On Tue, Nov 22, 2011 at 4:10 PM, Royce Souther <[email protected]> wrote: > Are you using Ubuntu? They did a crap job converting only some services to > upstart and breaking everything with their half-ass transition. I had the > same problem trying to get NFS to run. The upstart script for portmap did > not exist and the /etc/init.d script refused to let me run it because it > wanted me to use the upstart script. > > If the lpd will not restart, stop or what ever because upstart us F*ed-UP > then you can edit the postrm & prerm file to comment out that line with a # > symbol at the start > # /etc/init.d/lpd restart > Then try to run "sudo dpkg -P dcp7065dnlpr" > > You should also try to run > sudo service lpd restart > and see if the service command is able to find the script properly. I > don't think it will but it is worth a try. > > > On Tue, Nov 22, 2011 at 2:37 PM, Ralph Boland <[email protected]> wrote: > >> > Try this >> > sudo dpkg -P dcp7065dnlpr >> > >> > Not this >> > sudo dpkg -P dcp7065dnlpr-2.1.0-1.i386 >> > >> >> Thanks for your help. >> >> Sorry for the confusion but that was what I did originally. >> When posting I repeated the command incorrectly. >> My original output from doing this command was: >> >> dpkg: error processing dcp7065dnlpr (--purge): >> Package is in a very bad inconsistent state - you should >> reinstall it before attempting a removal. >> Errors were encountered while processing: >> dcp7065dnlpr >> >> >> > Sorry I have not been following your problems but I though that I maybe >> > able to help with simple dpkg commands. >> > >> > You can also take a look at the code. The install is failing because of >> > lpd. You can look at the configure script >> > /var/lib/dpkg/info/dcp7065dnlpr.preinst & >> > /var/lib/dpkg/info/dcp7065dnlpr.postinst to see what it is trying to do >> > with lpd >> > >> >> These files don't seem to exist. If while in /var/lib/dpkg/info/ I run: >> ls -l dcp7065* >> I get: >> -rw-r--r-- 1 root root 754 2011-09-26 14:13 dcp7065dnlpr.list >> -rw-r--r-- 1 root root 937 2010-05-23 21:12 dcp7065dnlpr.md5sums >> -rwxr-xr-x 1 root root 616 2010-05-23 21:12 dcp7065dnlpr.postinst >> -rwxr-xr-x 1 root root 140 2010-05-23 21:12 dcp7065dnlpr.postrm >> -rwxr-xr-x 1 root root 183 2010-05-23 21:12 dcp7065dnlpr.prerm >> >> The postinst and postrm files contain command: >> /etc/init.d/lpd restart >> >> so I tried: >> sudo /etc/init.d/lpd restart >> and I get: >> >> Since the script you are attempting to invoke has been converted to >> an >> Upstart job, you may also use the stop(8) and then start(8) utilities, >> e.g. stop lpd ; start lpd. The restart(8) utility is also available. >> start: Unknown job: lpd >> >> If I try: >> sudo start lpd >> I get: >> start: Unknown job: lpd >> >> So my problem appears to be with these scripts. >> If while in /etc/inid.d I do: >> ls -l lpd >> I get: >> lrwxrwxrwx 1 root root 16 2011-09-26 13:33 lpd -> /etc/init.d/cups >> >> If I do: >> ls -l cups >> I get: >> lrwxrwxrwx 1 root root 21 2011-09-18 02:39 cups -> >> /lib/init/upstart-job >> >> If while in /lib/init I do: >> ls -l upstart-job >> I get: >> -rwxr-xr-x 1 root root 2182 2011-04-20 16:45 upstart-job >> >> So this file exists. It is a shell script. >> I am no expert with shell scripts but my interpretation of the >> shell script is that it runs: >> start lpd. >> >> So I did (again, see above): >> sudo start lpd >> and I get: >> start: Unknown job: lpd >> >> There does not seem to be a lpd command or process. >> I don't know where to go from here. >> I assume this command should exist and should be started >> during boot up. >> I tried installing cups but that didn't seem to help. >> Perhaps I need to start it somehow. >> >> >> Any suggestions welcome. >> >> Thanks again >> >> Rocky >> >> =================================================== >> >> >> >> >> >> > >> > On Sat, Nov 19, 2011 at 8:46 PM, Ralph Boland <[email protected]> >> wrote: >> > >> >> > I have this same printer running flawlessly in our Ubuntu only >> network >> >> > (ok, there are some windows VMs too, but that doesn't matter for this >> >> > discussion...) >> >> ... >> >> >> >> Encouraged by Shawn's success with my printer model and Ubunutu I tried >> >> again. >> >> I failed again. >> >> Worse, I seem to have entered dpkg hell. >> >> Installing the package fails and yet I cannot remove it. >> >> I am instructed you re-install the package but that of course fails. >> >> >> >> Furthermore, from my current state, I cannot update packages or >> >> upgrade to Ubuntu 11.10 >> >> >> >> Examples: >> >> >> >> If I run: >> >> >> >> dpkg -i -force-all dcp7065dnlpr-2.1.0-1.i386.deb >> >> >> >> I get: >> >> >> >> ... >> >> Unpacking replacement dcp7065dnlpr-2.1.0-1.i386 ... >> >> start: Unknown job: lpd >> >> dpkg: warning: subprocess old post-removal script returned error exit >> >> status 1 >> >> dpkg - trying script from the new package instead ... >> >> start: Unknown job: lpd >> >> dpkg: error processing dcp7065dnlpr-2.1.0-1.i386.deb (--install): >> >> subprocess new post-removal script returned error exit status 1 >> >> start: Unknown job: lpd >> >> dpkg: error while cleaning up: >> >> subprocess new post-removal script returned error exit status 1 >> >> Errors were encountered while processing: >> >> dcp7065dnlpr-2.1.0-1.i386.deb >> >> >> >> >> >> If I try: >> >> sudo dpkg -P dcp7065dnlpr-2.1.0-1.i386 >> >> >> >> I get: >> >> dpkg: warning: there's no installed package matching >> >> dcp7065dnlpr-2.1.0-1.i386 >> >> >> >> >> >> >> >> If I try: >> >> sudo apt-get install -f >> >> >> >> I get: >> >> >> >> ... >> >> Preparing to replace dcp7065dnlpr 2.1.0-1 (using >> >> .../dcp7065dnlpr-2.1.0-1.i386.deb) ... >> >> Unpacking replacement dcp7065dnlpr ... >> >> start: Unknown job: lpd >> >> dpkg: warning: subprocess old post-removal script returned error exit >> >> status 1 >> >> dpkg - trying script from the new package instead ... >> >> start: Unknown job: lpd >> >> dpkg: error processing >> >> /home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb (--unpack): >> >> subprocess new post-removal script returned error exit status 1 >> >> start: Unknown job: lpd >> >> dpkg: error while cleaning up: >> >> subprocess new post-removal script returned error exit status 1 >> >> Errors were encountered while processing: >> >> /home/rocky/MyDebs/./OLD/dcp7065dnlpr-2.1.0-1.i386.deb >> >> E: Sub-process /usr/bin/dpkg returned an error code (1) >> >> >> >> >> >> If I start up Synaptic Package Manager and select Brother and then >> >> package: >> >> dcp7065dnlpr >> >> (installed version: 2.1.0-1) >> >> (latest version 2.1.0-1) >> >> (Description Brother DCP-7065DN LPR driver) >> >> >> >> and then try: >> >> >> >> remove package or remove package completely >> >> >> >> I get: >> >> E: dcp7065dnlpr: Package is in a very bad inconsistent state - you >> >> should reinstall it before attempting a removal. >> >> >> >> >> >> But if I try: >> >> >> >> reinstall package >> >> >> >> I get: >> >> E: /home/rocky/MyDebs/./OLD/dcp7070dwlpr-2.1.0-1.i386.deb: subprocess >> >> new post-removal script returned error exit status 1 >> >> >> >> ================================== >> >> >> >> I have run out of ideas. >> >> How do I remove my package? >> >> >> >> >> >> Thanks from dpkg hell >> >> >> >> Ralph (Rocky) Boland >> >> _______________________________________________ >> clug-talk mailing list >> [email protected] >> http://clug.ca/mailman/listinfo/clug-talk_clug.ca >> Mailing List Guidelines (http://clug.ca/ml_guidelines.php) >> **Please remove these lines when replying >> > > > > -- > Easy, fast GUI development. > http://PerlQt.wikidot.com > -- Easy, fast GUI development. http://PerlQt.wikidot.com
_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

