اطلاعیه

بستن
هنوز اطلاعیه ای در دست نیست.

خطا هنگام نصب برنامه در اوبونتو

بستن
X
 
  • فیلتر کردن
  • زمان
  • نمایش
Clear All
پست های جدید

    خطا هنگام نصب برنامه در اوبونتو

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

    الان باید برای تعمیر یا حذف mysql چیکار باید بکنم تا بتونم دوباره رو سیستم برنامه نصب کنم




    آخرین ویرایش توسط Habili; در تاریخ/ساعت 11-10-2021, 12:07 PM.

    #2
    با سلام و احترام
    لطفا اول بررسی بفرمایید که بسته ای مربوط به مای اس کیو ال بر روی توزیع نصب نباشه :
    کد PHP:
    dpkg -grep mysql 
    اگر نصب بود پاکش کنید :
    کد PHP:
    apt-get purge <package name
    حالا به مخازنتون اضافه کنید :
    کد PHP:
    deb http://archive.ubuntu.com/ubuntu trusty main 
    کد PHP:
    sudo apt-get update
    sudo apt install mysql
    -server-5.6 
    موفق باشید



    کامنت


      #3
      سلام لطفا در ادامه فرمایش صحبت های دوست مون این تاپیک ها را هم بررسی بفرمایید.
      آخرین ویرایش توسط Habili; در تاریخ/ساعت 02-08-2021, 10:20 PM.

      من قلبی بزرگ با رویاهایی بزرگ دارم. دانسته هایمان را با هم به اشتراک بگذاریم.

      کامنت


        #4
        حالا این ارور رو میده :

        ~$ sudo apt-get install mysql-server
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        mysql-server is already the newest version (5.7.16-0ubuntu0.16.04.1).
        The following packages were automatically installed and are no longer required:
        freeglut3 libboost-python1.58.0 libdbd-mysql-perl libdbi-perl
        libmysqlclient20 libreadline5 libterm-readkey-perl mariadb-common
        Use 'sudo apt autoremove' to remove them.
        0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
        2 not fully installed or removed.
        After this operation, 0 B of additional disk space will be used.
        Do you want to continue? [Y/n] y
        Setting up mysql-server-5.7 (5.7.16-0ubuntu0.16.04.1) ...
        Renaming removed key_buffer and myisam-recover options (if present)
        ERROR: Unable to start MySQL server:
        mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
        mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
        Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
        Once the problem is resolved, run apt-get --fix-broken install to retry.
        dpkg: error processing package mysql-server-5.7 (--configure):
        subprocess installed post-installation script returned error exit status 1
        dpkg: dependency problems prevent configuration of mysql-server:
        mysql-server depends on mysql-server-5.7; however:
        Package mysql-server-5.7 is not configured yet.

        dpkg: error processing package mysql-server (--configure):
        dependency problems - leaving unconfigured
        No apport report written because the error message indicates its a followup error from a previous failure.
        Errors were encountered while processing:
        mysql-server-5.7
        mysql-server
        E: Sub-process /usr/bin/dpkg returned an error code (1

        کامنت


          #5
          نوشته شده توسط d3vilish مشاهده پست
          حالا این ارور رو میده :
          لطفا موارد زیر رو انجام بدین :
          کد PHP:
          #sudo apt-get remove --purge mysql-server mysql-client mysql-common
          #sudo apt-get autoremove
          #sudo apt-get autoclean
          #sudo apt-get install mysql-server
          #sudo apt-get install -f 
          #sudo vi /etc/apt/sources.list.d/mysql.list
          این ها رو اضافه کنید :
          deb http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu trusty main 
          deb-src http://ppa.launchpad.net/ondrej/mysql-5.6/ubuntu trusty main 

          #sudo apt-get update 
          #sudo apt-get install mysql-server-5.6
          موفق باشید 

          کامنت

          درباره انجمن منطقه لینوکسی ها

          انجمن منطقه لینوکسی ها با هدف ارتقاء سطح علمی کاربران در سطح جهانی و همچنین کمک به بالا بردن سطح علمی عمومی در زمینه های تخصصی فوق پایه گذاری شده است. انجمن منطقه لینوکسی ها از طریق کارشناسان و متخصصان پاسخگوی سوالات گوناگون کاربران مبتدی یا پیشرفته میباشد تا حد امکان تلاش شده که محیطی متنوع و کاربر پسند و به دور از هرگونه حاشیه جهت فعالیت کاربران در این انجمن ایجاد شود. لذا ما به صورت مستمر برای پیشرفت کمی و کیفی محتوی و اطلاعات انجمنمان میکوشیم که این برای ما ارزشمند و حائز اهمیت است. کلیه حقوق،اطلاعات و مقالات در این انجمن متعلق به سایت منطقه لینوکسی ها میباشد، و هرگونه نسخه برداری بدون ذکر منبع مورد پیگرد قانونی خواهد شد.

          شبکه های اجتماعی
          در حال انجام ...
          X