I tried to install my printer [http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=hll2360dw_us&os=128] on my fresh install of Trisquel and this output was given during the install:
    The security level of AppArmor has been lowered. (aa-complain cups)
    aa-complain cupsd
    Setting /usr/sbin/cupsd to complain mode.

I'd rather not have cups in complain mode. I read a bit of the manpage and I'd rather it would be on enforce mode.
I don't know much about apparmor at this point and I'm trying to catch up.

Attached are the uninstall script the Brother install tool created and my install log. I uninstalled the drivers and set cups back to normal just in case until I know what's going on.

>Maybe someone more experienced can give some pointers on apparmor profiles for cups and wireless printers?


PS:
Hello :)
I'm new here, slowly making the transition to a more libre lifestyle and workflow.

gnarlos@gnuchine:~/Downloads$ sudo mkdir /var/spool/lpd
gnarlos@gnuchine:~/Downloads$ sudo mkdir /usr/share/cups/model
mkdir: cannot create directory ‘/usr/share/cups/model’: File exists
gnarlos@gnuchine:~/Downloads$ sudo dpkg -i --force-all 
hll2360dlpr-3.2.0-1.i386.deb 
Selecting previously unselected package hll2360dlpr.
(Reading database ... 167118 files and directories currently installed.)
Preparing to unpack hll2360dlpr-3.2.0-1.i386.deb ...
Unpacking hll2360dlpr (3.2.0-1) ...
Setting up hll2360dlpr (3.2.0-1) ...
/var/lib/dpkg/info/hll2360dlpr.postinst: 3: 
/var/lib/dpkg/info/hll2360dlpr.postinst: 
/opt/brother/Printers/HLL2360D/inf/braddprinter: not found
gnarlos@gnuchine:~/Downloads$ sudo dpkg -i --force-all hll2360d
hll2360dcupswrapper-3.2.0-1.i386.deb  hll2360dlpr-3.2.0-1.i386.deb
gnarlos@gnuchine:~/Downloads$ sudo dpkg -i --force-all hll2360d
hll2360dcupswrapper-3.2.0-1.i386.deb  hll2360dlpr-3.2.0-1.i386.deb
gnarlos@gnuchine:~/Downloads$ sudo dpkg -i --force-all 
hll2360dlpr-3.2.0-1.i386.deb 
(Reading database ... 167138 files and directories currently installed.)
Preparing to unpack hll2360dlpr-3.2.0-1.i386.deb ...
/var/lib/dpkg/info/hll2360dlpr.prerm: 3: /var/lib/dpkg/info/hll2360dlpr.prerm: 
/opt/brother/Printers/HLL2360D/inf/braddprinter: not found
Unpacking hll2360dlpr (3.2.0-1) over (3.2.0-1) ...
Setting up hll2360dlpr (3.2.0-1) ...
/var/lib/dpkg/info/hll2360dlpr.postinst: 3: 
/var/lib/dpkg/info/hll2360dlpr.postinst: 
/opt/brother/Printers/HLL2360D/inf/braddprinter: not found
gnarlos@gnuchine:~/Downloads$ gunzip linux-brprinter-installer-*.*.*-*.gz
gnarlos@gnuchine:~/Downloads$ sudo su
root@gnuchine:/home/gnarlos/Downloads# bash linux-brprinter-installer-*.*.*-* 
Brother machine name 
Driver-packages cannot be found.
 Confirm the model name.

root@gnuchine:/home/gnarlos/Downloads# bash linux-brprinter-installer-*.*.*-* 
HL-L2360DW
You are going to install following packages.
   hll2360dlpr-3.2.0-1.i386.deb
   hll2360dcupswrapper-3.2.0-1.i386.deb
OK? [y/N] ->y

Hit http://us.archive.trisquel.info belenos InRelease
Hit http://us.archive.trisquel.info belenos-updates InRelease
Hit http://us.archive.trisquel.info belenos-security InRelease
Hit http://us.archive.trisquel.info belenos/main Sources
Hit http://us.archive.trisquel.info belenos/main amd64 Packages
Hit http://us.archive.trisquel.info belenos/main i386 Packages
Hit http://us.archive.trisquel.info belenos/main Translation-en
Hit http://us.archive.trisquel.info belenos-updates/main Sources
Hit http://us.archive.trisquel.info belenos-updates/main amd64 Packages
Hit http://us.archive.trisquel.info belenos-updates/main i386 Packages
Hit http://us.archive.trisquel.info belenos-security/main Sources
Hit http://us.archive.trisquel.info belenos-security/main amd64 Packages
Hit http://us.archive.trisquel.info belenos-security/main i386 Packages
Ign http://us.archive.trisquel.info belenos/main Translation-en_US
Ign http://us.archive.trisquel.info belenos-updates/main Translation-en_US
Ign http://us.archive.trisquel.info belenos-updates/main Translation-en
Ign http://us.archive.trisquel.info belenos-security/main Translation-en_US
Ign http://us.archive.trisquel.info belenos-security/main Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lib32gcc1 libc6-i386
The following NEW packages will be installed:
  lib32gcc1 lib32stdc++6 libc6-i386
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,515 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.trisquel.info/trisquel/ belenos-updates/main libc6-i386 
amd64 2.19-0ubuntu6.6 [2,206 kB]
Get:2 http://us.archive.trisquel.info/trisquel/ belenos-updates/main lib32gcc1 
amd64 1:4.9.3-0ubuntu4 [47.8 kB]
Get:3 http://us.archive.trisquel.info/trisquel/ belenos-updates/main 
lib32stdc++6 amd64 4.8.4-2ubuntu1~14.04 [262 kB]
Fetched 2,515 kB in 9s (278 kB/s)                                              
Selecting previously unselected package libc6-i386.
(Reading database ... 167138 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.19-0ubuntu6.6_amd64.deb ...
Unpacking libc6-i386 (2.19-0ubuntu6.6) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a4.9.3-0ubuntu4_amd64.deb ...
Unpacking lib32gcc1 (1:4.9.3-0ubuntu4) ...
Selecting previously unselected package lib32stdc++6.
Preparing to unpack .../lib32stdc++6_4.8.4-2ubuntu1~14.04_amd64.deb ...
Unpacking lib32stdc++6 (4.8.4-2ubuntu1~14.04) ...
Setting up libc6-i386 (2.19-0ubuntu6.6) ...
Setting up lib32gcc1 (1:4.9.3-0ubuntu4) ...
Setting up lib32stdc++6 (4.8.4-2ubuntu1~14.04) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
dpkg -x hll2360dlpr-3.2.0-1.i386.deb /
dpkg -x hll2360dcupswrapper-3.2.0-1.i386.deb /
dpkg-deb: building package `hll2360dlpr' in `hll2360dlpr-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2360dlpr-3.2.0-1a.i386.deb
dpkg-deb: building package `hll2360dcupswrapper' in 
`hll2360dcupswrapper-3.2.0-1a.i386.deb'.
dpkg -b ./brother_driver_packdir hll2360dcupswrapper-3.2.0-1a.i386.deb
dpkg -i --force-all hll2360dlpr-3.2.0-1a.i386.deb
(Reading database ... 167452 files and directories currently installed.)
Preparing to unpack hll2360dlpr-3.2.0-1a.i386.deb ...
Unpacking hll2360dlpr (3.2.0-1) over (3.2.0-1) ...
Setting up hll2360dlpr (3.2.0-1) ...
dpkg -i --force-all hll2360dcupswrapper-3.2.0-1a.i386.deb
Selecting previously unselected package hll2360dcupswrapper.
(Reading database ... 167452 files and directories currently installed.)
Preparing to unpack hll2360dcupswrapper-3.2.0-1a.i386.deb ...
Unpacking hll2360dcupswrapper (3.2.0-1) ...
Setting up hll2360dcupswrapper (3.2.0-1) ...
lpadmin -p HLL2360D -E -v dnssd://Brother%20HL-L2360D%20series._ipp._tcp.local/ 
-P /usr/share/ppd/brother/brother-HLL2360D-cups-en.ppd
#
The security level of AppArmor has been lowered. (aa-complain cups)
aa-complain cupsd
Setting /usr/sbin/cupsd to complain mode.
Will you specify the Device URI? [Y/n] ->Y


0: socket
1: ipp14
2: ipp
3: https
4: http
5: ipps
6: serial:/dev/ttyS0?baud=115200
7: smb
8: lpd
9: parallel:/dev/lp0
10: dnssd://Brother%20HL-L2360D%20series._ipp._tcp.local/
11: lpd://BRW7429AF6E4D6B/BINARY_P1
12 (I): Specify IP address.
13 (A): Auto. (dnssd://Brother%20HL-L2360D%20series._ipp._tcp.local/)

select the number of destination Device URI. ->12

 enter IP address ->10.0.0.9
lpadmin -p HLL2360D -v socket://10.0.0.9 -E
Test Print? [y/N] ->y

#!  /bin/bash
#RM_SELINUX_RULE=enable
#
#  PRNL=hll2360dlpr-3.2.0-1a.i386.deb
#  PRNC=hll2360dcupswrapper-3.2.0-1a.i386.deb
#  SCAN=
#  SKEY=
#
if ! [ -f /etc/init.d/cupsys ];then
 DUMMYCUPSYS=1
 ln -s /bin/true  /etc/init.d/cupsys
fi
if ! [ -f /etc/init.d/cups ];then
 DUMMYCUPS=1
 ln -s /bin/true  /etc/init.d/cups
fi
if ! [ -f /etc/init.d/lpd ];then
 DUMMYLPD=1
 ln -s /bin/true  /etc/init.d/lpd
fi
if ! [ -f /etc/init.d/lprng ];then
 DUMMYLPRNG=1
 ln -s /bin/true  /etc/init.d/lprng
fi
dpkg  -x hll2360dcupswrapper-3.2.0-1.i386.deb /
dpkg  -P    hll2360dcupswrapper
dpkg  -x hll2360dlpr-3.2.0-1.i386.deb /
dpkg  -P    hll2360dlpr
if [ "$DUMMYCUPS" = 1 ];then
  lsc=$(ls -al /etc/init.d/cups  2> /dev/null| grep ^l)
  if [ "$lsc" != "" ];then
    rm -f /etc/init.d/cups
  fi
fi

if [ "$DUMMYCUPSYS" = 1 ];then
  lsc=$(ls -al /etc/init.d/cupsys  2> /dev/null| grep ^l)
  if [ "$lsc" != "" ];then
    rm -f /etc/init.d/cupsys
  fi
fi

if [ "$DUMMYLPD" = 1 ];then
  lsc=$(ls -al /etc/init.d/lpd  2> /dev/null | grep ^l)
  if [ "$lsc" != "" ];then
    rm -f /etc/init.d/lpd
  fi
fi

if [ "$DUMMYLPRNG" = 1 ];then
  lsc=$(ls -al /etc/init.d/lprng | grep ^l)
  if [ "$lsc" != "" ];then
    rm -f /etc/init.d/lprng
  fi
fi


Reply via email to