E: Sub-process /usr/bin/dpkg returned an error code (1) ( might be different than other errors like this )
Finally i found a solution for my problem.
run following commands in your terminal one after other
Here i have problem with mysql package. so i remove all mysql files
cd /usr/sbin/
./mysqld
sudo rm mysql*
sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
sudo apt-get autoremove -y
sudo rm -rf /etc/mysql
sudo find / -iname 'mysql*' -exec rm -rf {} \;
sudo systemctl stop mysql
sudo apt purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
sudo apt autoremove
sudo apt autoclean
sudo apt update
sudo apt upgrade
E: Sub-process /usr/bin/dpkg returned an error code (1) - elasticsearch
Same error with elasticsearch was resolved by install jre.
Related Topics
How to Install Packages from Command Line on Suse
How to Convert String to Number in Gnuplot
Differencebetween './Example.Sh' and 'Sh Example.Sh'
Use Grep to Find Content in Files and Move Them If They Match
How to Clear the Line Number in Vim When Copying
Location of .Bashrc for "Bash on Ubuntu on Windows" in Windows 10
Simulate a Faulty Block Device with Read Errors
How to Add Entry in Linux Man Page Database
How to Replace All Lines Between Two Points and Subtitute It with Some Text in Sed
How to Capture Network Packets Per Pid
How to Emulate the Raspberry Pi 2 on Qemu
How to Exclude Absolute Paths for Tar
Determine If There Is Data Left on the Socket and Discard It
When to Use Kernel Threads VS Workqueues in the Linux Kernel
How to Automatically Start a Node.Js Application in Amazon Linux Ami on Aws
One Command to Create a Directory and File Inside It Linux Command
Reliability of Linux Kernel Add_Timer at Resolution of One Jiffy