On Wed, Jul 12, 2017 at 01:39:34PM +0000, Grand T wrote:
> Startin from a clean situation
> 
> 
> root@debian:/etc/apparmor.d# ls -alrt *thunderbird*
> -rw-r--r-- 1 root root 8819 juil. 12 15:33 usr.bin.thunderbird
> root@debian:/etc/apparmor.d# cd local
> root@debian:/etc/apparmor.d/local# ls -alrt *thunderbird*
> ls: impossible d'accéder à '*thunderbird*': Aucun fichier ou dossier de ce 
> type
> root@debian:/etc/apparmor.d/local# cd ../disable/
> root@debian:/etc/apparmor.d/disable# ls -alrt *thunderbird*
> ls: impossible d'accéder à '*thunderbird*': Aucun fichier ou dossier de ce 
> type
> root@debian:/etc/apparmor.d/disable# aa-disable thunderbird
> 
> ERROR: Include file /etc/apparmor.d/local/usr.bin.thunderbird not found
> 
> 
> So what? Apparmor says he needs something in local while you say  it don't 
> have anything in local

Sorry, I still can't reproduce your issue here even on a second PC.
I installed apparmor on a laptop were version 45.8.0-3 is still
installed.

carsten@x260:~  $ LANG= dpkg -l thunderbird
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-=============================================
ii  thunderbird          1:45.8.0-3      amd64           mail/news client with 
RSS, chat and integrate

carsten@x260:~  $ LANG= sudo apt install apparmor
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libass5 libbluray1 libmad0 libntfs-3g871 libraw15 libx265-95
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libapparmor-perl
Suggested packages:
  apparmor-profiles apparmor-profiles-extra apparmor-utils
The following NEW packages will be installed:
  apparmor libapparmor-perl
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 609 kB of archives.
... [snip]
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service -> 
/lib/systemd/system/apparmor.service.
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory
Processing triggers for systemd (233-9) ...

I started thunderbird and it worked as expected.

Now I updated to 52.2.1-4 by updating the whole system which I needed to
anyway ...

carsten@x260:~  $ LANG= sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libass5 libbluray1 libmad0 libntfs-3g871 libraw15 libx265-95 python-pyasn1
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  firmware-linux-free irqbalance linux-image-4.11.0-1-amd64 python-asn1crypto
The following packages will be upgraded:
  adwaita-icon-theme apt apt-utils at-spi2-core automake 
calendar-google-provider cpp cpp-6 cups
....
  ncurses-term perl perl-base perl-modules-5.24 python-cryptography systemd 
systemd-sysv thunderbird
  thunderbird-l10n-de udev xserver-common xserver-xephyr xserver-xorg-core 
xserver-xorg-legacy xwayland
120 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 MB of archives.
... [snip]
carsten@x260:~  $ LANG= dpkg -l thunderbird
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-=============================================
ii  thunderbird          1:52.2.1-4      amd64           mail/news client with 
RSS, chat and integrate

Now again I started Thunderbird ... and all is working again.

carsten@x260:~  $ thunderbird --version
 Thunderbird 52.2.1
carsten@x260:~  $ thunderbird 
[calBackendLoader] Using Thunderbird's builtin libical backend
[calSleepMonitor] Starting sleep monitor.
[calTimezoneService] Loading resource://calendar/timezones/zones.json
[calTimezoneService] Timezones version 2.2016j loaded
[calGoogleSessionManager] Creating session c.schoenert@xxxxx
[calStorageCalendar] Timezones have been changed from 2.2016c to 2.2016j, 
updating calendar data.
[calGoogleSessionManager] Reusing session c.schoenert@xxxxx
...

So I'm sorry, but without readjusting the behaviour of your setup it's very
difficult to track down the root of your problem. Maybe you can provide a
complete backup of the folder /etc/apparmor.d.

One thing I need to take back is about the file 'local/usr.bin.thunderbird', 
We ship this file, or at least the installation helper of apparmor, but the
file is empty on default. Due the removing I have suggested the including of
that can't work now and get this error message you have seen.
This file is for changes done by the user.

I suggest to reinstall the thunderbird package and take care that no old cruft
files are left over before doing the reinstall.
So please backup or remove any files matching thunderbird in /etc/apparmor*
and reinstall the thunderbird package afterwards.

$ find /etc/apparmor.d -type f -name "*thunderbird*" -exec sudo rm {} \;
$ sudo apt install --reinstall thunderbird

If the problem still exists it's probably the time to get in touch with the
Debian apparmor people, which have much more knowledge than me. Please visit
https://wiki.debian.org/AppArmor/Debug

I still see no problem on the thunderbird packaging side but I'm also not a
apparmor specialist. We would need the help from apparmor people at all then.

Regards
Carsten

Reply via email to