I recently upgraded all local development and CI systems from Ubuntu 12.04 to Ubuntu 12.10.
This killed the local installations of the W3C HTML validator. If the same happened to you, here's how to fix it.
The package responsible for providing
was removed. This causes the W3C HTML validator to fail as it requires
the above directory to be present in order to find various document type
It gets a bit worse: the above directory isremoved when installing the
We need to get
back, copy the files we need somewhere safe, reinstall the W3C HTML validator
package and then copy the files we need back to where they should be.
sudo apt-get install w3c-dtd-xhtml
Copy the files we need somewhere safe:
cp -R /usr/share/xml/xhtml /usr/share/xml/xhtml.bak
Reinstall the W3C HTML validator:
sudo apt-get remove w3c-markup-validator
sudo apt-get install w3c-markup-validator
This will cause
/usr/share/xml/xhtmlto be removed!
Copy the files we need back to where they should be:
cp -R /usr/share/xml/xhtml.bak /usr/share/xml/xhtml
You should find your local installation of the W3C HTML validator now works under Ubuntu 12.10.