سلام دوستان من از اوبونتو 16.04 استفاده میکنم امروز میخواستم lamp رو نصب کنم همه چیز رو اوکی کردم ولی موقع نصب phpmyadmin نصب شد و از اون موقع به بعد هرچی نصب میکنم ارور apt-get -f install رو میده :
بعد من دستور sudo apt-get -f install رو زدم ولی ایندفعه ارور پایینی رو داد
این ارور هم میگه که فلان پوشه و فایل وجود نداره (درسته چون من حذف کردم)
الان باید برای تعمیر یا حذف mysql چیکار باید بکنم تا بتونم دوباره رو سیستم برنامه نصب کنم
کد PHP:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
بعد من دستور sudo apt-get -f install رو زدم ولی ایندفعه ارور پایینی رو داد
کد:
[COLOR=#000000][FONT=&]~$ sudo apt-get -f install[/FONT][/COLOR] [COLOR=#000000][FONT=&]Reading package lists... Done[/FONT][/COLOR] [COLOR=#000000][FONT=&]Building dependency tree [/FONT][/COLOR] [COLOR=#000000][FONT=&]Reading state information... Done[/FONT][/COLOR] [COLOR=#000000][FONT=&]The following packages were automatically installed and are no longer required:[/FONT][/COLOR] [COLOR=#000000][FONT=&] libdbd-mysql-perl libdbi-perl libmysqlclient20 libreadline5[/FONT][/COLOR] [COLOR=#000000][FONT=&] libterm-readkey-perl mariadb-common[/FONT][/COLOR] [COLOR=#000000][FONT=&]Use 'sudo apt autoremove' to remove them.[/FONT][/COLOR] [COLOR=#000000][FONT=&]0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.[/FONT][/COLOR] [COLOR=#000000][FONT=&]2 not fully installed or removed.[/FONT][/COLOR] [COLOR=#000000][FONT=&]After this operation, 0 B of additional disk space will be used.[/FONT][/COLOR] [COLOR=#000000][FONT=&]Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.04.1) ...[/FONT][/COLOR] [COLOR=#000000][FONT=&]Renaming removed key_buffer and myisam-recover options (if present)[/FONT][/COLOR] [COLOR=#000000][FONT=&]ERROR: Unable to start MySQL server:[/FONT][/COLOR] [COLOR=#000000][FONT=&]mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)[/FONT][/COLOR] [COLOR=#000000][FONT=&]mysqld: [ERROR] Fatal error in defaults handling. Program aborted![/FONT][/COLOR] [COLOR=#000000][FONT=&]Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.[/FONT][/COLOR] [COLOR=#000000][FONT=&]Once the problem is resolved, run apt-get --fix-broken install to retry.[/FONT][/COLOR] [COLOR=#000000][FONT=&]dpkg: error processing package mysql-server-5.7 (--configure):[/FONT][/COLOR] [COLOR=#000000][FONT=&] subprocess installed post-installation script returned error exit status 1[/FONT][/COLOR] [COLOR=#000000][FONT=&]dpkg: dependency problems prevent configuration of mysql-server:[/FONT][/COLOR] [COLOR=#000000][FONT=&] mysql-server depends on mysql-server-5.7; however:[/FONT][/COLOR] [COLOR=#000000][FONT=&] Package mysql-server-5.7 is not configured yet.[/FONT][/COLOR] [COLOR=#000000][FONT=&]dpkg: error processing package mysql-server (--configure):[/FONT][/COLOR] [COLOR=#000000][FONT=&] dependency problems - leaving unconfigured[/FONT][/COLOR] [COLOR=#000000][FONT=&]No apport report written because the error message indicates its a followup error from a previous failure.[/FONT][/COLOR] [COLOR=#000000][FONT=&] Errors were encountered while processing:[/FONT][/COLOR] [COLOR=#000000][FONT=&] mysql-server-5.7[/FONT][/COLOR] [COLOR=#000000][FONT=&] mysql-server[/FONT][/COLOR] [COLOR=#000000][FONT=&]E: Sub-process /usr/bin/dpkg returned an error code (1)[/FONT][/COLOR]
الان باید برای تعمیر یا حذف mysql چیکار باید بکنم تا بتونم دوباره رو سیستم برنامه نصب کنم
کامنت