Urgent: MySql installation error in the Kali linux

106 views
Skip to first unread message

Jay Bhatt

unread,
May 14, 2018, 8:05:16 AM5/14/18
to vg...@googlegroups.com
HI Folks,

I am facing below error while installing the MySql.

apt-get install mysql*
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package mysql-apt-config_0.8.9-1_all.deb
E: Couldn't find any package by glob 'mysql-apt-config_0.8.9-1_all.deb'
E: Couldn't find any package by regex 'mysql-apt-config_0.8.9-1_all.deb'
E: Unable to locate package mysql-apt-config_0.8.9-1_all.deb.1
E: Couldn't find any package by glob 'mysql-apt-config_0.8.9-1_all.deb.1'
E: Couldn't find any package by regex 'mysql-apt-config_0.8.9-1_all.deb.1'

I am not getting any package by below command.

root@kali:~#  dpkg -l|grep mysql

When I am trying to search the file name, it showing

root@kali:~# find / -name mysql-apt-config_0.8.9-1_all.deb
/root/mysql-apt-config_0.8.9-1_all.deb


Can anyone help me urgently on this?


Thanks,

Kind Regards,
Jay Bhatt

nilesh vaghela

unread,
May 15, 2018, 1:15:04 AM5/15/18
to vglug
can you check 

dpkg -i /path_to_deb_package.

Thanks

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+unsubscribe@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
ElectroMech Corporation
AWS Consulting Partner
RedHat Training and Sales Partner
302, New York Plaza, Opp. Chief Justice Bunglow,
Bodakdev, Ahmedabad - 380054 

Jay Bhatt

unread,
May 15, 2018, 11:29:24 PM5/15/18
to vg...@googlegroups.com
Hi Team,

I have done below things to run this command.


root@kali:~# rm /var/lib/apt/lists/lock

root@kali:~# apt-get purge mysql-server mysql-client mariadb-server && apt-get remove mysql-server mysql-client mariadb-server

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'mysql-client' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  galera-3 libconfig-inifiles-perl libdbd-mysql-perl libhtml-template-perl
  libmariadbclient18 mariadb-client-10.1 mariadb-client-core-10.1
  mariadb-common mariadb-server-10.1 mariadb-server-core-10.1
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  mariadb-server*
0 upgraded, 0 newly installed, 1 to remove and 210 not upgraded.
After this operation, 64.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 337553 files and directories currently installed.)
Removing mariadb-server (1:10.1.29-6) ...

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package 'mariadb-server' is not installed, so not removed
Package 'mysql-client' is not installed, so not removed
Package 'mysql-server' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  galera-3 libconfig-inifiles-perl libdbd-mysql-perl libhtml-template-perl
  libmariadbclient18 mariadb-client-10.1 mariadb-client-core-10.1
  mariadb-common mariadb-server-10.1 mariadb-server-core-10.1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 210 not upgraded.

root@kali:~# apt-get clean && apt-get update
Hit:1 http://old.kali.org/kali sana InRelease                                 
Hit:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease                 
Reading package lists... Done                     

root@kali:~# dpkg -i /path_to_deb_package.
dpkg: error: cannot access archive '/path_to_deb_package.': No such file or directory

Thnaks,

Kind Regards,
Jay Bhatt

On Tue, May 15, 2018 at 11:09 AM, Jay Bhatt <carry...@gmail.com> wrote:
Hello Nilesh Sir,

I have got below output from this command,

root@kali:~# apt-get purge mysql-server mysql-client mariadb-server && apt-get remove mysql-server mysql-client mariadb-server
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

root@kali:~# apt-get clean && apt-get update
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

root@kali:~# dpkg -i /path_to_deb_package.
dpkg: error: dpkg status database is locked by another process


Thanks,

Kind Regards,
Jay Bhatt

Jay Bhatt

unread,
May 15, 2018, 11:29:25 PM5/15/18
to vg...@googlegroups.com
Hello Nilesh Sir,

I have got below output from this command,

root@kali:~# apt-get purge mysql-server mysql-client mariadb-server && apt-get remove mysql-server mysql-client mariadb-server
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

root@kali:~# apt-get clean && apt-get update
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

root@kali:~# dpkg -i /path_to_deb_package.
dpkg: error: dpkg status database is locked by another process


Thanks,

Kind Regards,
Jay Bhatt
Reply all
Reply to author
Forward
0 new messages