Sempre que tento reinstalar o LAMP, recebo este erro. Por favor, diga-me como consertar:
Errors were encountered while processing:
javascript-common
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
O resultado para sudo dpkg --configure -a
:
Setting up phpmyadmin (4:4.5.4.1-2ubuntu1) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
granting access to database phpmyadmin for phpmyadmin@localhost: already exists.
creating database phpmyadmin: already exists.
populating database via sql... done.
dbconfig-common: flushing administrative password
dpkg: error processing package phpmyadmin (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
phpmyadmin
javascript-common
O resultado para sudo apt-get install -f
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up phpmyadmin (4:4.5.4.1-2ubuntu1) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
granting access to database phpmyadmin for phpmyadmin@localhost: already exists.
creating database phpmyadmin: already exists.
populating database via sql... done.
dbconfig-common: flushing administrative password
dpkg: error processing package phpmyadmin (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
javascript-common
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
E sudo apt-get update
me dá:
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/cinelerra-ppa/ppa/ubuntu xenial InRelease
Hit:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:4 http://ppa.launchpad.net/ondrej/php5/ubuntu xenial InRelease
Ign:5 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial InRelease
Hit:6 http://ppa.launchpad.net/wine/wine-builds/ubuntu xenial InRelease
Ign:7 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release
Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
Ign:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
Err:8 http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial/main Sources
404 Not Found
Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/tualatrix/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/xenial/main/source/Sources 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.