安装 postgis 后 Ubuntu 登录黑屏

安装 postgis 后 Ubuntu 登录黑屏

我刚刚组装了一台新电脑,运行华硕 P8Z77-V LK 主板,没有显卡。可以启动 Ubuntu,运行一堆常用程序(Chrome 等),没有问题。

但是,当我通过 ubuntugis/ppa 安装 postgis 时,事情开始变糟了。PostGIS 实际上运行良好,但问题出现在我关闭计算机时。当我重新启动时,屏幕闪烁几次黑色,我短暂地看到登录终端提示,然后我只面对黑屏和闪烁的白色光标(应该是通常的 ubuntu 登录屏幕)。

奇怪的是,输入密码并按下回车键(虽然屏幕上什么都没显示)后,我登录并调出了 Ubuntu 桌面。但是,一些关键程序的性能受到了负面影响。例如,Chrome 中的标签会奇怪地褪色,网页偶尔会变得异常(屏幕上出现大量小彩色线条,屏幕某些部分出现大黑条等),尤其是当我切换标签或滚动时。

通过卸载 postgis 并自动删除以下软件包,我可以完全消除此问题(可以启动到正常登录屏幕并且不会出现 chrome 异常):

sudo apt-get -y remove qgis postgresql postgis postgresql-9.1-postgis postgresql-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgraphicsmagick3 postgresql-9.1 python-numpy libxine1-x libproj0
  odbcinst1debian2 python-qgis-common libqt4-test libqt4-designer libqwt5-qt4
  libogdi3.2 libspatialindex1 python-central libcoin60 libavdevice53 odbcinst
  liblapack3gf libxine1-plugins libmysqlclient18 python-qgis libarmadillo2
  libdap11 libgdal1-1.7.0 libqt4-help python-qt4 libgdal1 python-sip
  libepsilon0 qgis-providers libgif4 libxerces-c28 libopenthreads14
  libhdf5-serial-1.8.4 libgeos-c1 gdal-bin postgresql-common proj-data
  libxine1-console libfreexl1 qgis-common postgresql-client-9.1
  libqtassistantclient4 libspatialite3 libzip2 libblas3gf proj-bin
  libxine1-misc-plugins libgeos-3.2.2 libgeos-3.3.8 python-gdal
  postgresql-client-common libpq5 libosgearth1 libqgis1.8.0 libodbc1
  libgsl0ldbl libqt4-scripttools libqtwebkit4 libhdf4-0-alt
  qgis-plugin-globe-common qgis-providers-common mysql-common
  libopenscenegraph80 libdapclient3 libxine1-bin libxine1-ffmpeg libnetcdf6
  libxine1

那么...我该如何在我的机器上运行 postgis 而不会产生这些不良副作用?

相关内容