Public bug reported:

Hello.

On Wed, Jun 19. 2019, Evince has been updated to version
'3.18.2-1ubuntu4.5' [1]. This update added, among other things, some
hardening from Ubuntu 18.10 Release. However, it seems to be impossible
to open any '.pdf' files. After Evince update, I notices I can't open
any '.pdf'. When I try to do it, Evince show this info:


,----[ Evince .pdf issue ]
|
| Cannot open document „file:///home/user/Docs/foo-bar.pdf”.
| Failed to load backend for 'application/pdf': 
/usr/lib/i386-linux-gnu/evince/4/backends
| /libpdfdocument.so: Invalid ELF header
|
`----


There is a reference to 
'/usr/lib/i386-linux-gnu/evince/4/backends/libpdfdocument.so'. According to 
dpkg(1) command this file is a part of the 'libevdocument3-4' package, which is 
already installed (version '3.18.2-1ubuntu4.5'). I also tried to open '.pdf' 
file via terminal, but nothing changed. Here are the results:


,----[ $ evince Docs/foo-bar.pdf ]
|
| (evince:26918): EvinceDocument-WARNING **: 
/usr/lib/i386-linux-gnu/evince/4/backends
| /libpdfdocument.so: Invalid ELF header
|
| (evince:26918): EvinceDocument-WARNING **: 
/usr/lib/i386-linux-gnu/evince/4/backends
| /libpdfdocument.so: Invalid ELF header
|
`----


I think, that the whole problem is related with AppArmor changes in the latest 
update, because - for example - day before everything was okay. The described 
problem started right after Evince updated to the latest version. (To check 
differences between versions, please see 2. and 3.). The 'Evince' profile has 
never been changed by the Users. 

If it's about AppArmor: I've tried to change Evince profile mode form 'enforce' 
to 'complain'. Unfortunately, nothing changed. There wasn't any valuable 
entries in system log files etc. (I'm sorry, but for now, I can not check other 
variants/solutions, such as: (a) disabling Evince profile with 'aa-disable(8)' 
command or (b) making links between '/etc/apparmor.d/usr.bin.evince' and 
'/etc/apparmor.d/disable/' directory, next using 'apparmor_parser(8)' command 
to remove profile etc.)
 

Here are some technical informations:

✗ Description:  Ubuntu 16.04.6 LTS
✗ Release:      16.04
✗ Architecture: x86_32/i386
✗ Linux kernel: 4.4.0-154-generic (4.4.0-155-generic is already installed, but 
reboot is needed)

✓ AppArmor:     2.10.95-0ubuntu2.11
✓ Evince:       3.18.2-1ubuntu4.5


Best regards.
______________
[1] https://lists.ubuntu.com/archives/xenial-changes/2019-June/024691.html
[2] 
http://launchpadlibrarian.net/429511526/evince_3.18.2-1ubuntu4.4_3.18.2-1ubuntu4.5.diff.gz
[3] 
http://launchpadlibrarian.net/429293224/evince_3.18.2-1ubuntu4.1_3.18.2-1ubuntu4.5.diff.gz

** Affects: evince (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: elf evince header libpdfdocument.so pdf xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1835285

Title:
  PDF files do not open. 'Failed to load backend for 'application/pdf':
  libpdfdocument.so' and 'Invalid ELF header'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/evince/+bug/1835285/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to