Tôi có những lỗi này khi tôi đang làm
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
1 trên máy chủ Debian của mình:Preparing to unpack .../phpmyadmin_4%3a4.6.6-4+deb9u1_all.deb ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dpkg: warning: subprocess old pre-removal script returned error exit status 10
dpkg: trying script from the new package instead ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dpkg: error processing archive /var/cache/apt/archives/phpmyadmin_4%3a4.6.6-4+deb9u1_all.deb [--unpack]:
subprocess new pre-removal script returned error exit status 10
dbconfig-common: flushing administrative password
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 10
Preparing to unpack .../libgssdp-1.0-3_1.0.1-1+deb9u1_amd64.deb ...
Unpacking libgssdp-1.0-3:amd64 [1.0.1-1+deb9u1] over [1.0.1-1] ...
Preparing to unpack .../libgupnp-1.0-4_1.0.1-1+deb9u1_amd64.deb ...
Unpacking libgupnp-1.0-4:amd64 [1.0.1-1+deb9u1] over [1.0.1-1] ...
Preparing to unpack .../libpq5_9.6.19-0+deb9u1_amd64.deb ...
Unpacking libpq5:amd64 [9.6.19-0+deb9u1] over [9.6.17-0+deb9u1] ...
Errors were encountered while processing:
/var/cache/apt/archives/phpmyadmin_4%3a4.6.6-4+deb9u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code [1]
Tôi đã cố gắng loại bỏ phpmyadmin nhưng tôi nhận được những lỗi này:
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
Tôi cũng đã làm:
apt-get clean
apt-get update && apt-get upgrade
dpkg --configure -a
apt-get -f install
Nhưng không có gì hoạt động.
Bất cứ khi nào tôi cài đặt phpmyadmin, nó sẽ gây ra lỗi sau:-
After this operation, 0 B of additional disk space will be used.
Setting up phpmyadmin [4:4.5.4.1-2ubuntu2] ...
/var/lib/dpkg/info/phpmyadmin.postinst: 51: .: Can't open /usr/share/dbconfig-common/dpkg/postinst.mysql
dpkg: error processing package phpmyadmin [--configure]:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
phpmyadmin
N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code [1]
Bây giờ xin vui lòng cho tôi biết tôi có thể làm gì?
pa4080
28.4K10 Huy hiệu vàng83 Huy hiệu bạc155 Huy hiệu Đồng10 gold badges83 silver badges155 bronze badges
Hỏi ngày 6 tháng 4 năm 2017 lúc 18:59Apr 6, 2017 at 18:59
Câu trả lời này là một cách để khắc phục vấn đề của bạn nhưng nguồn gốc của vấn đề của bạn là bạn đã xóa tệp của ____ 12 theo cách thủ công.
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
3The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
4[Làm điều đó cho mọi tệp bị thiếu]
Sau đó
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
5The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
6Đã trả lời ngày 12 tháng 3 năm 2018 lúc 8:48Mar 12, 2018 at 8:48
1
Postby Rosyth »Thu ngày 21 tháng 10 năm 2021 6:55 sáng
Rosythlevel 1posts: 14Joined: Thứ Sáu 17 tháng 1 năm 2020 3:53 PM
Vấn đề này cũng can thiệp vào một bản cập nhật bình thường thông qua Trình quản lý cập nhật. Cập nhật opera gây ra lỗi,
Tôi có chỉ cần xóa /etc/dbconfig-common/phpmyadmin.conf không? Điều đó nghe có vẻ là một giải pháp quá đơn giản, mà tôi làm cho mọi thứ tồi tệ hơn.
Any ideas on how to fix this ??
I can't uninstall phpmyadmin to re-install cleanly, and I can't install over.
Mã: Chọn tất cả
[2013]$ sudo apt purge phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
phpmyadmin*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 27.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
[Reading database ... 463281 files and directories currently installed.]
Removing phpmyadmin [4:4.9.5+dfsg1-2] ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dpkg: error processing package phpmyadmin [--remove]:
installed phpmyadmin package pre-removal script subprocess returned error exit status 10
dpkg: too many errors, stopping
dbconfig-common: flushing administrative password
dpkg: error while cleaning up:
installed phpmyadmin package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
phpmyadmin
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code [1]
Mã: Chọn tất cả
[2016]$ sudo apt-get install -f phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
phpmyadmin is already the newest version [4:4.9.5+dfsg1-2].
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 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 phpmyadmin [4:4.9.5+dfsg1-2] ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
dbconfig-common: flushing administrative password
dpkg: error processing package phpmyadmin [--configure]:
installed phpmyadmin package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
Tôi không biết nơi thậm chí bắt đầu tìm cách khắc phục điều này. Bất cứ ai có thể đề xuất một sửa chữa?
Can anyone suggest a fix?
Hệ thống là
Mã: Chọn tất cả
[2021]$ inxi -S
System: Host: Mint20new Kernel: 5.11.0-37-generic x86_64 bits: 64 Desktop: Cinnamon 5.0.6 Distro: Linux Mint 20.2 Uma
[2023]$ inxi -a
CPU: 6-Core AMD Ryzen 5 3600 [-MT MCP-] speed/min/max: 4034/2200/3600 MHz Kernel: 5.11.0-37-generic x86_64 Up: 4h 55m
Mem: 8380.5/32022.9 MiB [26.2%] Storage: 7.97 TiB [22.0% used] Procs: 442 Shell: bash 5.0.17 inxi: 3.0.38
Được chỉnh sửa lần cuối bởi Rosyth vào ngày 21 tháng 10 năm 2021 7:46 AM, tổng cộng được chỉnh sửa 1 lần.
Rosythlevel 1posts: 14Joined: Thứ Sáu 17 tháng 1 năm 2020 3:53 PM
Re: Lỗi APT với PHPMyAdmin: DPKG: Lỗi trong khi dọn dẹp
Postby Rosyth »Thu ngày 21 tháng 10 năm 2021 3:26 sáng by rosyth » Thu Oct 21, 2021 3:26 am
Vâng, cảm ơn, tôi đã thử điều đó sớm hơn, nhưng vẫn đang thấy lỗi. [Trích từ lịch sử]
Mã: Chọn tất cả
2001 sudo apt install phpmyadmin
2002 sudo apt update
2003 sudo apt upgrade
2004 sudo dpkg --configure -a
2005 sudo apt remove phpmyadmin
2006 ll /var/lib/dpkg/info/phpmyadmin
2007 sudo apt-get install -f phpmyadmin
Được chỉnh sửa lần cuối bởi Rosyth vào ngày 21 tháng 10 năm 2021 7:46 AM, tổng cộng được chỉnh sửa 1 lần.
It seems the phpmyadmin may have left some partially uninstalled files somewhere, and now
they are breaking almost every attempt to install anything.
But I don't know where to start looking in order to clean up.
Rosythlevel 1posts: 14Joined: Thứ Sáu 17 tháng 1 năm 2020 3:53 PM
Re: Lỗi APT với PHPMyAdmin: DPKG: Lỗi trong khi dọn dẹp
Postby Rosyth »Thu ngày 21 tháng 10 năm 2021 3:26 sáng by rosyth » Thu Oct 21, 2021 6:04 am
Vâng, cảm ơn, tôi đã thử điều đó sớm hơn, nhưng vẫn đang thấy lỗi. [Trích từ lịch sử]
But I'm not sure if I ever did a full 'LAMP' package installation, the basis of the installation is a few years old now.
Vấn đề tôi gặp phải là với công cụ APT cho tôi biết phpmyadmin là một vấn đề, nhưng không có thông tin thực sự nào về cách khắc phục nó. Có vẻ như phpmyadmin có thể đã để lại một số tệp chưa được cài đặt ở đâu đó, và bây giờ họ đang phá vỡ hầu hết mọi nỗ lực để cài đặt bất cứ điều gì. Nhưng tôi không biết bắt đầu tìm kiếm ở đâu để dọn dẹp.
Mã: Chọn tất cả
dpkg.log:2021-10-15 11:14:58 status installed phpmyadmin:all 4:4.9.5+dfsg1-2
dpkg.log:2021-10-15 11:14:58 remove phpmyadmin:all 4:4.9.5+dfsg1-2
dpkg.log:2021-10-15 11:14:58 status half-configured phpmyadmin:all 4:4.9.5+dfsg1-2
dpkg.log:2021-10-15 11:15:14 configure phpmyadmin:all 4:4.9.5+dfsg1-2
dpkg.log:2021-10-15 11:15:14 status half-configured phpmyadmin:all 4:4.9.5+dfsg1-2
syslog.1:Oct 20 20:06:49 Mint20new avahi-daemon[1336]: Service "phpMyAdmin on Mint20new" [/services/phpmyadmin.service] successfully established
[2004]$ service phpmyadmin status
Unit phpmyadmin.service could not be found.
Được chỉnh sửa lần cuối bởi Rosyth vào ngày 21 tháng 10 năm 2021 7:46 AM, tổng cộng được chỉnh sửa 1 lần.
Rosythlevel 1posts: 14Joined: Thứ Sáu 17 tháng 1 năm 2020 3:53 PM
Re: Lỗi APT với PHPMyAdmin: DPKG: Lỗi trong khi dọn dẹp
Postby Rosyth »Thu ngày 21 tháng 10 năm 2021 3:26 sáng by rosyth » Thu Oct 21, 2021 6:55 am
Vâng, cảm ơn, tôi đã thử điều đó sớm hơn, nhưng vẫn đang thấy lỗi. [Trích từ lịch sử]
Updating Opera gives an error,
Mã: Chọn tất cả
Preconfiguring packages ...
[Reading database ... 463282 files and directories currently installed.]
Preparing to unpack .../opera-stable_80.0.4170.63_amd64.deb ...
Unpacking opera-stable [80.0.4170.63] over [80.0.4170.40] ...
Setting up opera-stable [80.0.4170.63] ...
Setting up phpmyadmin [4:4.9.5+dfsg1-2] ...
dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf
dbconfig-common: flushing administrative password
dpkg: error processing package phpmyadmin [--configure]:
installed phpmyadmin package post-installation script subprocess returned error exit status 10
Processing triggers for desktop-file-utils [0.24+linuxmint1] ...
Processing triggers for mime-support [3.64ubuntu1] ...
Processing triggers for hicolor-icon-theme [0.17-2] ...
Processing triggers for gnome-menus [3.36.0-1ubuntu1] ...
Processing triggers for shared-mime-info [1.15-1] ...
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
A package failed to install. Trying to recover:
Được chỉnh sửa lần cuối bởi Rosyth vào ngày 21 tháng 10 năm 2021 7:46 AM, tổng cộng được chỉnh sửa 1 lần.
Rosythlevel 1posts: 14Joined: Thứ Sáu 17 tháng 1 năm 2020 3:53 PM
Re: Lỗi APT với PHPMyAdmin: DPKG: Lỗi trong khi dọn dẹp
Postby Rosyth »Thu ngày 21 tháng 10 năm 2021 3:26 sáng by rosyth » Thu Oct 21, 2021 7:45 am
Vâng, cảm ơn, tôi đã thử điều đó sớm hơn, nhưng vẫn đang thấy lỗi. [Trích từ lịch sử]
Mã: Chọn tất cả
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 24.8 MB disk space will be freed.
Do you want to continue? [Y/n]
dpkg: error processing package phpmyadmin [--remove]:
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code [1]
0 Vấn đề tôi gặp phải là với công cụ APT cho tôi biết phpmyadmin là một vấn đề, nhưng không có thông tin thực sự nào về cách khắc phục nó. Có vẻ như phpmyadmin có thể đã để lại một số tệp chưa được cài đặt ở đâu đó, và bây giờ họ đang phá vỡ hầu hết mọi nỗ lực để cài đặt bất cứ điều gì. Nhưng tôi không biết bắt đầu tìm kiếm ở đâu để dọn dẹp.
Thanks to those who corresponded.