ubuntu中有 4 个软件包没有被完全安装或卸载。

在ubuntu中安装删除卸载软件,出现有

 依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 cmake 的配置工作不能继续:
 cmake 依赖于 cmake-data (= 2.8.5-1ubuntu1);然而:
  软件包 cmake-data 尚未配置。
dpkg:处理 cmake (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg:依赖关系问题使得 cmake-qt-gui 的配置工作不能继续:
 cmake-qt-gui 依赖于 cmake-data;然而:
  软件包 cmake-data 尚未配置。
 cmake-qt-gui 依赖于 cmake (= 2.8.5-1ubuntu1);然而:
  软件包 cmake 尚未配置。
dpkg:处理 cmake-qt-gui (--configure)时出错:
 依赖关系问题 - 仍未被配置
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                      No apport report written because MaxReports is reached already
                                                      在处理时有错误发生:
 emacsen-common
 cmake-data
 cmake
 cmake-qt-gui

如上的错误.

解决方法为:

先用locate定位到emacsen-common(罪首),locate之前最好先updatedb一下.

root@ubuntu:/opt/insight-6.8-1# locate emacsen
/usr/bin/dh_installemacsen
/usr/lib/emacsen-common
/usr/lib/emacsen-common/emacs-install
/usr/lib/emacsen-common/emacs-package-install
/usr/lib/emacsen-common/emacs-package-remove
/usr/lib/emacsen-common/emacs-remove
/usr/lib/emacsen-common/generate-install-list
/usr/lib/emacsen-common/packages
/usr/lib/emacsen-common/packages/install
/usr/lib/emacsen-common/packages/remove
/usr/lib/emacsen-common/packages/install/cmake-data
/usr/lib/emacsen-common/packages/install/dictionaries-common
/usr/lib/emacsen-common/packages/install/emacsen-common
/usr/lib/emacsen-common/packages/remove/cmake-data
/usr/lib/emacsen-common/packages/remove/dictionaries-common
/usr/lib/emacsen-common/packages/remove/emacsen-common
/usr/share/debhelper/autoscripts/postinst-emacsen
/usr/share/debhelper/autoscripts/prerm-emacsen
/usr/share/doc/emacsen-common
/usr/share/doc/emacsen-common/changelog.gz
/usr/share/doc/emacsen-common/copyright
/usr/share/doc/emacsen-common/debian-emacs-policy.gz
/usr/share/doc/emacsen-common/sample-package-install-foo.gz
/usr/share/doc/emacsen-common/sample-package-remove-foo.gz
/usr/share/man/es/man1/dh_installemacsen.1.gz
/usr/share/man/fr/man1/dh_installemacsen.1.gz
/usr/share/man/man1/dh_installemacsen.1.gz
/var/cache/apt/archives/emacsen-common_1.4.19ubuntu2_all.deb
/var/cache/dictionaries-common/emacsen-ispell-default.el
/var/cache/dictionaries-common/emacsen-ispell-dicts.el
/var/crash/emacsen-common.0.crash
/var/lib/emacsen-common
/var/lib/dpkg/info/emacsen-common.conffiles
/var/lib/dpkg/info/emacsen-common.list
/var/lib/dpkg/info/emacsen-common.postinst
/var/lib/dpkg/info/emacsen-common.postrm
/var/lib/dpkg/info/emacsen-common.prerm
/var/lib/emacsen-common/installed-flavors
接下来就把上面提到的这个文件统统删掉...


然后如果你还要emacs的话,那就重装吧.





一、安装MySQL 1、安装cmake cd /usr/local/src tar zxvf cmake-2.8.11.2.tar.gz cd cmake-2.8.11.2 ./configure make make install 2、安装MySQL groupadd mysql #添加mysql组 useradd -g mysql mysql -s /bin/false #创建用户mysql并加入到mysql组,不允许mysql用户直接登录系统 mkdir -p /data/mysql #创建MySQL数据库存放目录 chown -R mysql:mysql /data/mysql #设置MySQL数据库存放目录权限 mkdir -p /usr/local/mysql #创建MySQL安装目录 cd /usr/local/src #进入软件包存放目录 tar zxvf mysql-5.6.19.tar.gz #解压 cd mysql-5.6.19 #进入目录 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/etc #配置 make #编译 make install #安装 rm -rf /etc/my.cnf #删除系统默认的配置文件(如果默认没有就不用删除) cd /usr/local/mysql #进入MySQL安装目录 ./scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql #生成mysql系统数据库 ln -s /usr/local/mysql/my.cnf /etc/my.cnf #添加到/etc目录的软连接 cp ./support-files/mysql.server /etc/rc.d/init.d/mysqld #把Mysql加入系统启动 chmod 755 /etc/init.d/mysqld #增加执行权限 chkconfig mysqld on #加入开机启动 vi /etc/rc.d/init.d/mysqld #编辑 basedir=/usr/local/mysql #MySQL程序安装路径 datadir=/data/mysql #MySQl数据库存放目录 :wq! #保存退出 service mysqld start #启动 vi /etc/profile #把mysql服务加入系统环境变量:在最后添加下面这一行 export PATH=$PATH:/usr/local/mysql/bin :wq! #保存退出 source /etc/profile #使配置立刻生效 下面这两行把myslq的库文件链接到系统默认的位置,这样你在编译类似PHP等软件时可以不用指定mysql的库文件地址。 ln -s /usr/local/mysql/lib/mysql /usr/lib/mysql ln -s /usr/local/mysql/include/mysql /usr/include/mysql mkdir /var/lib/mysql #创建目录 ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock #添加软链接 mysql_secure_installation #设置Mysql密码,根据提示按Y 回车输入2次密码
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值