UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I got this after doing a sudo apt-get update && sudo apt-get dist-upgrade from breezy to dapper today:
Preconfiguring packages ...
/tmp/xserver-xorg.config.120461: line 957: syntax error near unexpected token `esac'
xserver-xorg failed to preconfigure, with exit status 2
(Reading database ... 90645 files and directories currently installed.)
Preparing to replace xserver-xorg 6.8.2-77 (using .../xserver-xorg_7.0.0-0ubuntu24_all.deb) ...
/var/lib/dpkg/tmp.ci/config: line 957: syntax error near unexpected token `esac'
dpkg: error processing /var/cache/apt/archives/xserver-xorg_7.0.0-0ubuntu24_all.deb (--unpack):
subprocess pre-installation script returned error exit status 2
xserver-xorg postinst warning: not updating /etc/X11/xorg.conf; file has
been customized
Errors were encountered while processing:
/var/cache/apt/archives/xserver-xorg_7.0.0-0ubuntu24_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm now afraid to restart my machine. That sounds like it might hurt.
Has anyone seen this problem? Is there a fix? Or is it safe to restart?
This was a bug in the xserver-xorg package for Ubuntu Dapper. You can try your dist-upgrade again and it will work fine
For future reference, since you're using a testing version you can expect things to break periodically. This error has been fixed and doing apt-get update and dist-upgrade again will set things straight
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.