I eventually solved this by first deleting /usr/share/doc/libperl5.22/changelog.Debian.gz and then running sudo apt --fix-broken install. This fixed the libperl-issue, however I still had problems scanning. That seemed to be an issue with changed user-permissions during the upgrade to 17.04. simple-scan worked using sudo and after adding my user-account to the groups saned, scanner and lp scanning worked again as expected without using sudo, even after reboot.
I eventually solved this by first deleting /usr/share/ doc/libperl5. 22/changelog. Debian. gz and then running sudo apt --fix-broken install. This fixed the libperl-issue, however I still had problems scanning. That seemed to be an issue with changed user-permissions during the upgrade to 17.04. simple-scan worked using sudo and after adding my user-account to the groups saned, scanner and lp scanning worked again as expected without using sudo, even after reboot.