Till Kamppeter wrote:
> If a simple update does not recreate the files in /usr/lib/cups/backend,
> do "sudo dpkg-reconfigure cupsys" and change one of the backend choices,
> then do "sudo dpkg-reconfigure cupsys" again and change this backend
> choice back. Do you have files in /usr/lib/cups/backend now?
>
>
Ok. I now made a change in that I removed the "serial" backend as
one of the choices and it now makes all the other links. The problem
appears to the that the RET=true value where as previously if one
makes No changes from the defaults as provided by the package
when first installed it does not put in any links.
In short making an actual change from the defaults as provided by
the package when one first installs it NO links are put in....clearly
something is wrong with the RET test being set to false if no change
is made which I suppose is correct but when the package first gets installed
it should check to see if anything was installed....
Here is the successful log of installing links (only happens when I made
a change that I didn't want to.....
Till Kamppeter wrote: cups/backend, cups/backend now?
> If a simple update does not recreate the files in /usr/lib/
> do "sudo dpkg-reconfigure cupsys" and change one of the backend choices,
> then do "sudo dpkg-reconfigure cupsys" again and change this backend
> choice back. Do you have files in /usr/lib/
>
>
Ok. I now made a change in that I removed the "serial" backend as
one of the choices and it now makes all the other links. The problem
appears to the that the RET=true value where as previously if one
makes No changes from the defaults as provided by the package
when first installed it does not put in any links.
In short making an actual change from the defaults as provided by
the package when one first installs it NO links are put in....clearly
something is wrong with the RET test being set to false if no change
is made which I suppose is correct but when the package first gets installed
it should check to see if anything was installed....
Here is the successful log of installing links (only happens when I made
a change that I didn't want to.....
# dpkg-reconfigure cupsys debconf/ confmodule printers. conf.save ] classes. conf.save ] x:106:wtautz ] x:104:106: :/home/ cupsys: /bin/false ] x:107:wtautz, cupsys ] cups/certs ] ppd/cups- transitional- dir ] cups/model/ cups-included ] cups/backend/ smb ] lpd,parallel, scsi,socket, usb,snmp
* Stopping Common Unix Printing System:
cupsd
[ OK ]
+ . /usr/share/
+ [ ! 1 ]
+ [ -z ]
+ exec
+ [ ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ [ -e /etc/default/cupsys ]
+ . /etc/default/cupsys
+ LOAD_LP_MODULE=yes
+ [ -f /etc/cups/
+ [ -f /etc/cups/
+ getent group lpadmin
+ [ -z lpadmin:
+ getent group lpadmin
+ awk -F: { print $4 }
+ awk -F, { for (i=1; i <= NF; i++ ) print $i }
+ grep ^root$
+ [ -n ]
+ getent passwd cupsys
+ [ -z cupsys:
+ adduser --quiet cupsys lp
+ adduser --quiet cupsys dialout
+ getent group scanner
+ [ -z scanner:
+ adduser --quiet cupsys scanner
+ [ -d /etc/cups/certs ]
+ [ -d /var/spool/
+ [ -d /var/lib/cups/certs ]
+ [ -L /usr/share/
+ [ -L /usr/share/
+ [ -f /etc/cups/ppds.dat ]
+ [ -x /usr/bin/smbspool -a ! -e /usr/lib/
+ [ ! -e /etc/cups/raw.types ]
+ [ ! -e /etc/cups/raw.convs ]
+ db_fget cupsys/raw-print changed
+ _db_cmd FGET cupsys/raw-print changed
+ IFS= printf %s\n FGET cupsys/raw-print changed
+ IFS=
read -r _db_internal_line
+ RET=false
+ return 0
+ [ false = true ]
+ db_fget cupsys/backend changed
+ _db_cmd FGET cupsys/backend changed
+ IFS= printf %s\n FGET cupsys/backend changed
+ IFS=
read -r _db_internal_line
+ RET=true
+ return 0
+ [ true = true ]
+ db_get cupsys/backend
+ _db_cmd GET cupsys/backend
+ IFS= printf %s\n GET cupsys/backend
+ IFS=
read -r _db_internal_line
+ RET=ipp, lpd, parallel, scsi, socket, usb, snmp
+ return 0
+ SELECTED=ipp, lpd, parallel, scsi, socket, usb, snmp
+ echo ipp, lpd, parallel, scsi, socket, usb, snmp
+ sed -e s/, /,/g
+ list=ipp,
+ save_IFS=
+ IFS=, cups/backend cups/backend- available/ ipp /usr/lib/ cups/backend/ ipp cups/backend/ ipp /usr/lib/ cups/backend/ http cups/backend- available/ lpd /usr/lib/ cups/backend/ lpd cups/backend- available/ parallel /usr/lib/ cups/backend/ parallel cups/backend- available/ scsi /usr/lib/ cups/backend/ scsi cups/backend- available/ socket /usr/lib/ cups/backend/ socket cups/backend- available/ usb /usr/lib/ cups/backend/ usb cups/backend- available/ snmp /usr/lib/ cups/backend/ snmp
+ cd /usr/lib/
+ rm -f http ipp lpd parallel scsi serial socket usb snmp
+ ln /usr/lib/
+ [ ipp = ipp ]
+ ln /usr/lib/
+ ln /usr/lib/
+ [ lpd = ipp ]
+ ln /usr/lib/
+ [ parallel = ipp ]
+ ln /usr/lib/
+ [ scsi = ipp ]
+ ln /usr/lib/
+ [ socket = ipp ]
+ ln /usr/lib/
+ [ usb = ipp ]
+ ln /usr/lib/
+ [ snmp = ipp ]
+ IFS=
+ db_fset cupsys/backend changed false cups/backend/ lpd ] cups/backend/ lpd cups/backend/ lpd cups.d/ ports.conf -o -f /etc/cups/ cups.d/ browse. conf ] cupsd.conf cupsd.conf cups/daemon/ cups-check- pam-auth cups/daemon/ cups-check- pam-auth classes. conf ] printers. conf ] ppd/1-local- admin -a ! -L /usr/share/ ppd/1-local- admin ] ppd/2-third- party -a ! -L /usr/share/ ppd/2-third- party ] invoke- rc.d ] local/share share/ppd 2775 root staff local/share/ ppd share/ppd ] share/ppd share/ppd share/ppd
+ _db_cmd FSET cupsys/backend changed false
+ IFS= printf %s\n FSET cupsys/backend changed false
+ IFS=
read -r _db_internal_line
+ RET=false
+ return 0
+ [ -e /usr/lib/
+ chown root:lp /usr/lib/
+ chmod 4754 /usr/lib/
+ dpkg --compare-versions 1.2.8-0ubuntu6 lt-nl 1.2.8-0ubuntu3
+ [ -f /etc/cups/
+ chown root:lp /etc/cups
+ chmod 3755 /etc/cups
+ chown cupsys:root /etc/cups/
+ chmod 644 /etc/cups/
+ chown root:lp /etc/cups/ppd
+ chmod 755 /etc/cups/ppd
+ chown cupsys:shadow /usr/lib/
+ chmod 2754 /usr/lib/
+ [ ! -d /var/run/cups/certs ]
+ [ -f /etc/cups/
+ [ -f /etc/cups/
+ [ -d /var/cache/cups ]
+ chown -R cupsys:lp /var/cache/cups
+ dpkg --compare-versions 1.2.8-0ubuntu6 le 1.2.1-2ubuntu1
+ dpkg --compare-versions 1.2.8-0ubuntu6 lt 1.2.1-2ubuntu3
+ dpkg --compare-versions 1.2.8-0ubuntu6 le-nl 1.2.2-0ubuntu2
+ [ ! -e /usr/share/
+ [ ! -e /usr/share/
+ [ configure = configure ]
+ which install-docs
+ [ -x /etc/init.d/cupsys ]
+ update-rc.d cupsys multiuser 19
+ which invoke-rc.d
+ [ -x /usr/sbin/
+ invoke-rc.d cupsys start
* Starting Common Unix Printing System:
cupsd
[ OK ]
+ [ configure = configure ]
+ read line
+ set -- /usr/local/share 2775 root staff
+ dir=/usr/
+ mode=2775
+ user=root
+ group=staff
+ [ ! -e /usr/local/share ]
+ read line
+ set -- /usr/local/
+ dir=/usr/
+ mode=2775
+ user=root
+ group=staff
+ [ ! -e /usr/local/
+ mkdir /usr/local/
+ chown root:staff /usr/local/
+ chmod 2775 /usr/local/
+ read line
+ db_stop
+ echo STOP
+ exit 0