Interrupted apt-get, can't use apt/dpkg - Ask Ubuntu
i installing lamp-server^ command
sudo apt-get install lamp-server^
when hung on section:
setting mysql-server-5.7 (5.7.15-0ubuntu0.16.04.1) ... update-alternatives: using /etc/mysql/mysql.cnf provide /etc/mysql/my.cnf (my.cnf) in auto mode renaming removed key_buffer , myisam-recover options (if present)
i tried ctrl+c no avail, , out of habbit hit ctrl-z, suspended or something. using fg instantly exited left dpkg in odd locked state.
i tried,
sudo dpkg --configure -a
both before , after
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock
but no avail. if try --configure -a or apt-get upgrade this:
theelous3@compoopr:/var/lib/dpkg/updates$ sudo apt-get upgrade reading package lists... done building dependency tree reading state information... done calculating upgrade... done following packages have been kept back: linux-generic linux-headers-generic linux-image-generic 0 upgraded, 0 newly installed, 0 remove , 3 not upgraded. 11 not installed or removed. after operation, 0 b of additional disk space used. want continue? [y/n] y debconf: dbdriver "config": /var/cache/debconf/config.dat locked process: resource temporarily unavailable setting mysql-server-5.7 (5.7.15-0ubuntu0.16.04.1) ... debconf: dbdriver "config": /var/cache/debconf/config.dat locked process: resource temporarily unavailable dpkg: error processing package mysql-server-5.7 (--configure): subprocess installed post-installation script returned error exit status 1 setting php7.0-common (7.0.8-0ubuntu0.16.04.3) ... debconf: dbdriver "config": /var/cache/debconf/config.dat locked process: resource temporarily unavailable dpkg: error processing package php7.0-common (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of php7.0-json: php7.0-json depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. dpkg: error processing package php7.0-json (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php7.0-opcache: php7.0-opcache depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. dpkg: error processing package php7.0-opcache (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php7.0-readline: php7.0-readline depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. dpkg: error processing package php7.0-readline (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php7.0-cli: php7.0-cli depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. php7.0-cli depends on php7.0-json; however: package php7.0-json not configured yet. php7.0-cli depends on php7.0-opcache; however: package php7.0-opcache not configured yet. php7.0-cli depends on php7.0-readline; however: package php7.0-readline not configured yet. dpkg: error processing package php7.0-cli (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libapache2-mod-php7.0: libapache2-mod-php7.0 depends on php7.0-cli; however: package php7.0-cli not configured yet. libapache2-mod-php7.0 depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. libapache2-mod-php7.0 depends on php7.0-json; however: package php7.0-json not configured yet. libapache2-mod-php7.0 depends on php7.0-opcache; however: package php7.0-opcache not configured yet. dpkg: error processing package libapache2-mod-php7.0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libapache2-mod-php: libapache2-mod-php depends on libapache2-mod-php7.0; however: package libapache2-mod-php7.0 not configured yet. dpkg: error processing package libapache2-mod-php (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.7; however: package mysql-server-5.7 not configured yet. dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php7.0-mysql: php7.0-mysql depends on php7.0-common (= 7.0.8-0ubuntu0.16.04.3); however: package php7.0-common not configured yet. dpkg: error processing package php7.0-mysql (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php-mysql: php-mysql depends on php7.0-mysql; however: package php7.0-mysql not configured yet. dpkg: error processing package php-mysql (--configure): dependency problems - leaving unconfigured errors encountered while processing: mysql-server-5.7 php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-cli libapache2-mod-php7.0 libapache2-mod-php mysql-server php7.0-mysql php-mysql e: sub-process /usr/bin/dpkg returned error code (1)
you have left packages in unconfigured state. you'd need remove lock files left debconf, , fix unconfigured packages.
sudo rm /var/cache/debconf/*.dat sudo apt-get install -f
Comments
Post a Comment