我正在尝试使用安装 xbacklight
sudo apt-get install -y xbacklight
但是出现与 mysql 相关的错误。运行上述命令后,会弹出一个新窗口来设置 mysql 的密码。但设置后,终端中显示以下错误。
Reading package lists... Done
Building dependency tree
Reading state information... Done
xbacklight is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1534 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mysql-server-5.6 (5.6.30-0ubuntu0.15.10.1) ...
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
Fatal error in defaults handling. Program aborted
AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql'
我已经在 14.04 Ubuntu 中安装了 xbacklight。我应该如何在 15.04 中安装它?
答案1
运行以下命令:
sudo apt-get update
sudo mkdir /etc/mysql/conf.d
sudo apt-get -f install
然后,我强烈建议你在做其他事情之前先更新你的软件。运行以下命令之一:
sudo apt-get upgrade
或者,建议:
sudo apt-get dist-upgrade