Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Printer problem - using cups
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Slyer
n00b
n00b


Joined: 29 Dec 2002
Posts: 38
Location: Montréal, Canada

PostPosted: Fri Mar 28, 2003 3:18 am    Post subject: Printer problem - using cups Reply with quote

Since I updated my system from kde3.1 to 3.1.1, I cannot print. Therefore, on boot I receive this message:/sbin/runscript.sh: line 83: kde-3.1.1: command not found
I don't know what too do with that... Help please!
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Fri Mar 28, 2003 4:49 am    Post subject: Reply with quote

Have you tried re-emerging cups? Have you used the etc-update tool or some other means to update/merge your updated config files?

Can you still do everything else normally? Or are there other problems?

A bit more info would help..

derk
Back to top
View user's profile Send private message
Slyer
n00b
n00b


Joined: 29 Dec 2002
Posts: 38
Location: Montréal, Canada

PostPosted: Fri Mar 28, 2003 6:59 pm    Post subject: Problem with cups since kde update Reply with quote

After the kde update, I do etc-update. Nothing was chance for the cups config files.
I re emerge cups. The printer stil not working; it says it cannot load the printer list.
The only other thing who is not OK is when I boot: I receive a message like this: /var/lib/init debcache error at line 83
/sbin/runscript.sd : error at line 83.
Other things are OK
I hope this will helping u to help me...
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Mar 29, 2003 6:49 am    Post subject: Reply with quote

mmm .. let's try this if you haven't already ..
Unmerge cups and all related files, be sure to first do:

/etc/init.d/cupsd stop
rc-update del cupsd default

then unmerge all cups related files including: foomatic gimp-print-cups etc.

i.e. : emerge --unmerge cups *-cups etc

search through /etc and remove all cups and cupsd config files

Then reinstall, reconfigure, etc. I don't exactly know what is wrong
but some config file somewhere is not correctly configured or has not been updated to match properly.

one other thought .. do you have cups defined as a USE variable in /etc/make.conf if not that might explain your other problems with respect to kde and cups (you'll need to recompile at least kdelibs and kdebase if 'cups' wasn't defined)

let me know if this works.

derk
Back to top
View user's profile Send private message
Slyer
n00b
n00b


Joined: 29 Dec 2002
Posts: 38
Location: Montréal, Canada

PostPosted: Sun Mar 30, 2003 2:02 am    Post subject: Nothing works Reply with quote

I have "cups" in USE variable. I stop cups, remove it from the runlevel, unmerge kdelibs and cups, delete all the files in the /etc/cups. After that I emerge cups and kdelibs. I do a rc-update add cupsd default. After all those operation, I still got the same message: /var/lib/init.d/debcache: line 83: kde-3.1.1: command not found. :evil: :evil: :evil:
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Tue Apr 01, 2003 1:49 am    Post subject: Reply with quote

I should hit myself a few times .. :oops:

open the file: /var/lib/init.d/depcache
and look at line 83 and several lines above and below surrounding it to see what they say. There may be a clue in there... feed us the info here and maybe we'll see what it tells us. Note: I think everyone's file like this is peculiar to their configuration so my line 83 will bear no resemblence to yours.

this might give us a clue.

derk
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Tue Apr 01, 2003 2:08 am    Post subject: Reply with quote

more thoughts and investigation leads me to think that you have a missnamed service in the /etc/runlevels/boot or /etc/runlevels/default runlevels or in the /etc/init.d directory directly.

can you compare the names of the files in /etc/runlevels/boot , and /etc/runlevels/default to those in /etc/init.d.

They should be spelled the same. As the ones not in /etc/init.d are symlinks pointing to the corrresponding files in /etc/init.d. Unless a number is in front forcing reordering.

let me know what you find.

derk
Back to top
View user's profile Send private message
Slyer
n00b
n00b


Joined: 29 Dec 2002
Posts: 38
Location: Montréal, Canada

PostPosted: Thu Apr 03, 2003 7:44 pm    Post subject: ...not resolve yet... Reply with quote

/etc/init.d/runscript.sh at line 83 and over:

Code:

svc_stop() {
   local x=""
   local mydep=""
   local mydeps=""
   local retval=0
   local ordservice=""
   
   if [ ! -L "${svcdir}/started/${myservice}" ]
   then
      eerror "ERROR:  \"${myservice}\" has not yet been started."
      return 1
   fi

   # Do not try to stop if it had already failed to do so on runlevel change
   if [ -L "${svcdir}/failed/${myservice}" -a -d "${svcdir}/softscripts.new" ]
   then
      exit 1
   fi

   # Remove symlink to prevent recursion
   rm -f "${svcdir}/started/${myservice}"

   if [ -L "/etc/init.d/boot/${myservice}" ]
   then
      ewarn "WARNING:  you are stopping a boot service."
   fi
   if [ "${NETSERVICE}" = "yes" ]
   then
      # A net.* service
      if [ -L "/etc/runlevels/boot/${myservice}" -o \
           -L "/etc/runlevels/${mylevel}/${myservice}" ]
      then
         local netcount="$(ls -1 "${svcdir}"/started/net.* 2> /dev/null | \
            grep -v 'net\.lo' | egrep -c "\/net\.[[:alnum:]]+$")"

         # Only worry about net.* services if this is the last one running,
         # or if RC_NET_STRICT_CHECKING is set ...
         if [ "${netcount}" -lt 1 -o "${RC_NET_STRICT_CHECKING}" = "yes" ]
         then
            mydeps="net"
         fi
      fi
      
      mydeps="${mydeps} ${myservice}"
   else
      mydeps="${myservice}"
   fi
   if [ "${svcpause}" = "yes" ]
   then
      mydeps=""
   fi
   for mydep in ${mydeps}
   do
      # Do not stop a service if it 'use' the current sevice, or on rc change
      # and it should be started 'after' this service ...
      if [ -d "${svcdir}/need/${mydep}" ] || \
         ([ -d "${svcdir}/softscripts.new" -a -d "${svcdir}/after/${mydep}" ])
      then
         # On rc change, stop all services "after $myservice" first
         if [ -d "${svcdir}/softscripts.new" ]
         then
            local servicelist="$(dolisting "${svcdir}/need/${mydep}/") \
               $(dolisting "${svcdir}/after/${mydep}/")"
         else
            local servicelist="$(dolisting "${svcdir}/need/${mydep}/")"
         fi
         for x in ${servicelist}
         do
            if [ ! -L "${x}" ]
            then
               continue
            fi
            if [ ! -L "${svcdir}/started/${x##*/}" ]
            then
               # Service not currently running, continue
               continue
            fi
            if [ -L "${svcdir}/before/${x}/${mydep}" -a \
                 -L "${svcdir}/softscripts.new/${x}" ]
            then
               continue
            fi
            "${x}" stop
            if [ "$?" -ne 0 ]
            then
               # If we are halting the system, try and get it down as
               # clean as possible, else do not stop our service if
               # a dependent service did not stop.
               if [ "${SOFTLEVEL}" != "reboot" -a \
                    "${SOFTLEVEL}" != "shutdown" -a \
                   -L "${svcdir}/need/${mydep}/${x}" ]
               then
                  retval=1
               fi
               break
            fi
         done
      fi
   done

   if [ "${retval}" -ne 0 ]
   then
      eerror "ERROR:  problems stopping dependent services."
      eerror "        \"${myservice}\" is still up."
   else
      # Now that deps are stopped, stop our service
      stop
      retval="$?"
   fi

   if [ "${retval}" -ne 0 ]
   then
      # Did we fail to stop? create symlink to stop multible attempts at
      # runlevel change.  Note this is only used at runlevel change ...
      if [ -d "${svcdir}/failed" ]
      then
         ln -snf "/etc/init.d/${myservice}" "${svcdir}/failed/${myservice}"
      fi
      # If we are halting the system, do it as cleanly as possible
      if [ "${SOFTLEVEL}" != "reboot" -a "${SOFTLEVEL}" != "shutdown" ]
      then
         ln -snf "/etc/init.d/${myservice}" "${svcdir}/started/${myservice}"
      fi
   fi

   return "${retval}"
}



/var/lib/init.d/depcache, line 74 to 103:

Code:


  # Actual depend() function ...
  depend() {
     need checkroot hostname
     use isapnp
  }

  depend
)

#*** /etc/init.d/inetd ***

myservice="/etc/init.d/inetd"
myservice="${myservice##*/}"
echo "RCSCRIPT ${myservice}"

(
  # Get settings for rc-script ...
  [ -e /etc/conf.d/basic ]                 && source /etc/conf.d/basic

  [ -e "/etc/conf.d/${myservice}" ]        && source "/etc/conf.d/${myservice}"

  [ -e /etc/conf.d/net ]                   && \
  [ "${myservice%%.*}" = "net" ]           && \
  [ "${myservice##*.}" != "${myservice}" ] && source /etc/conf.d/net

  [ -e /etc/rc.conf ]                      && source /etc/rc.conf

  depend() {
    return 0
  }


For me, all those things are like chinese!!!
Thank u for your effort, I really appreciate, derk.
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Sat Apr 05, 2003 7:22 pm    Post subject: Reply with quote

hi sorry for the delay, i've been travelling.

Nothing looks out of the ordinary in these files.

it looks as if there's a service that might have it's name misspelled or a mess-up sym-link

when you get this message what service is it trying to start? cupsd or something else?

do you know how to check your logs for error messages?

derk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum