At first I installed gitweb 1:1.7.0.4-1. Then there were no /usr/share/gitweb/gitweb.js present, which also was reflected in /var/log/apache2/error.log.
Upgrading to gitweb 1:1.7.0.4-1ubuntu0.1 did provide /usr/share/gitweb/gitweb.js. Likewise the errors in /var/log/apache2/error.log stopped.
I can verify this fix.
At first I installed gitweb 1:1.7.0.4-1. Then there were no /usr/share/ gitweb/ gitweb. js present, which also was reflected in /var/log/ apache2/ error.log.
Upgrading to gitweb 1:1.7.0. 4-1ubuntu0. 1 did provide /usr/share/ gitweb/ gitweb. js. Likewise the errors in /var/log/ apache2/ error.log stopped.