Advertisement
para_bellum

DPKG error processing package

Jul 26th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. In my case, I got a 'Error while processing package hostname'. But hostname was not actually the problem here.
  2. When dpkg (through apt-get) processes packages, it leaves some intermediate files in /var/lib/dpkg/info/<package-name>.postinst
  3. Those file are then executed if you run 'apt-get install -f'.
  4. For example, my hostname.postinst did some checking and was running this command : 'update-rc.d hostname.sh defaults > /dev/null'.
  5. As the output was redirected to /dev/null, I could not see where the problem was.
  6.  
  7. The next step was to run 'sudo update-rc.d hostname.sh defaults' which yielded a more useful error message: 'Script virtuoso-nepomuk is broken: missing end of LSB comment'.
  8.  
  9. Indeed, this script was missing a part. Its comment section should begin with '### BEGIN INIT INFO' and end with '### END INIT INFO' (which was missing).
  10.  
  11. Now 'apt-get install -f' is running fine again (until the next bug).
  12.  
  13. References:
  14. https://askubuntu.com/questions/654951/failed-to-connect-to-socket-com-ubuntu-upstart-connection-refused-errors-were
  15. https://superuser.com/questions/242304/script-script-name-is-broken-missing-end-of-lsb-comment
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement