Mysql installation - Operation not permitted


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Mysql installation - Operation not permitted
# 1  
Old 04-27-2019
Mysql installation - Operation not permitted

Hello,
Since over one week, I have been consistently searching for a solution to my mysql installation errors. I surfed many sites on google to get rid of the issue. Now google gives me all the same results, I tested many of those solutions provided by... Now I am pulling hair

I am under ubuntu16.04 pc. Normally it was installed earlier. Then I faced incompatibility issues between mysql version and the softwares. So, removed mysql with below commands earlier.
Code:
sudo apt-get remove --purge mysql-server mysql-common
rm -rf /etc/mysql /var/lib/mysql
apt-get autoremove
apt-get autoclean
apt-get purge mysql*
apt-get -f install
apt-get update

Then I run below command to install mysql with other essential programs in ubuntu 16.04:
Code:
sudo apt-get install mysql-server php php-mysql php-pear nodejs libapache2-mod-php

I am receiving below error.
Code:
mv: cannot move '/etc/mysql/my.cnf' to '/etc/mysql/my.cnf.dpkg-backup': Operation not permitted
dpkg: error processing archive /var/cache/apt/archives/mysql-common_5.7.25-0ubuntu0.16.04.2_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/mysql-common_5.7.25-0ubuntu0.16.04.2_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

kernel version:
Code:
root@pc:~# uname -r
4.9.148-xxxx-std-ipv6-64

If I can not solve this issue, I will have to reinstall ubuntu 16.04 from scratch.
I'd appreciate your recommendation

Kind regards
Boris
# 2  
Old 04-27-2019
This might be just a rights issue. You can't use sudo unless you are authorised to do so.

Have you tried all this logged in as root???????

Root user overrides conventional security and will not be stopped on rights issues.

What userid are you running this installation under?
# 3  
Old 04-27-2019
Hello Hicksd8,
I am root...


Boris
# 4  
Old 04-27-2019
Do you have additional security layers installed, e.g. SELinux? Post the result of ls -la /etc/mysql.
# 5  
Old 04-27-2019
Here you are:

Code:
drwxr-xr-x   2 root root  4096 Apr 27 02:23 .
drwxr-xr-x 125 root root 12288 Apr 27 17:36 ..
-rw-r--r--   1 root root  1256 Dec 31 00:27 my.cnf
-rw-r--r--   1 root root   839 Apr 26 03:30 my.cnf.fallback


Thank you
Boris

Last edited by baris35; 04-27-2019 at 06:58 PM..
# 6  
Old 04-27-2019
Boris,

if you are root as you say you are, why are you using sudo?
# 7  
Old 04-27-2019
Hello Neo,
Normally you are right... Does it make any difference with/without sudo when I am root?
By the way, reinstallation is in progress.
But I'd like to know if you have any idea to fix it so that I'd keep your thought in my pocket for future isssues...


Code:
Installation progress
The installation request has been registered.
Copying system ( 4 / 8 )

Thank you
Boris
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Mysql apache installation

on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies

2. Shell Programming and Scripting

need command for mysql installation

Hi All, I want to install mysql on my server but i dont have root access when i have tried to install this MySQL-client-3.3.15-3.rhel5.x24_74.rpm using the command rpm -ivh MySQL-client-3.3.15-3.rhel5.x24_74.rpm getting error error: can't create transaction lock on... (0 Replies)
Discussion started by: aish11
0 Replies

3. Shell Programming and Scripting

mv warning set owner/group: Operation not permitted

Hi, Thanks for looking into this. I am running into below situation in free BSD. I have a file in /tmp/sample.txt with owner as 'xyz' and group as 'wheel' I am moving it to my home dir/newsample.txt whihc has owner 'xyz', but group 'someother' with below command, getting warning, but it is... (2 Replies)
Discussion started by: ramanaraoeee
2 Replies

4. UNIX for Dummies Questions & Answers

chown: Operation not permitted as root

Hi Expert, I am trying to change ownership of one file to another user that is exist in the system but getting operation not permitted error what could be the correct way? # ls -lh .Xauthority_ori -rw------- 1 maxim atlas 2.8K Jul 27 17:18 .Xauthority_ori # id -a uid=0(root)... (8 Replies)
Discussion started by: regmaster
8 Replies

5. AIX

AIX5.3--vmount: Operation not permitted

Hi all, iam unable to mount exported directory hari on AIX 5.3, which was in RedHat Linux As4. Linux-server AIX -client I am facing errors of bash-3.00# mount -n linuxas4 /hari /hari mount: 1831-008 giving up on: linuxas4:/hari vmount: Operation not permitted. Pl any body... (1 Reply)
Discussion started by: haribabu
1 Replies

6. Linux

failed to preserve ownership operation not permitted

Hi i have written one backup script in linux workstation.The backup script will do zipping files and moved to the backup directory(i,e /net/ts-bcn/sb_backup/sand). #So while moving zipped files to the backup directory i am getting some error like this error:mv:failed to preserve ownership... (2 Replies)
Discussion started by: yogks
2 Replies

7. Shell Programming and Scripting

Cannot utime: Operation not permitted

Hi - I have a script (.ksh) which has been transferred from one Linux box to another. Basically it untars a file a deploys the code to the relevent directories. It is failing with ' Cannot utime: Operation not permitted' When I run the command by hand it *is* doing the untar to the directories... (1 Reply)
Discussion started by: ajcannon
1 Replies

8. Linux

MySQL python installation

Hi I am using CentOS 4 machine..trying to install MySQL for python to setup a boinc project.. During the building process I am getting this error..I have even set the LD_lIBRARY_PATH to /usr/local/lib where the libmysqlclient.so file is present.. ./python -E ./setup.py build ./python: error... (1 Reply)
Discussion started by: Gayathrirri
1 Replies

9. Programming

pthread_create returns "operation not permitted" if I try to link static?

Hello, I am trying to port some testtools we wrote from solaris to redhat linux(AMD64). If I link dynamic, set the correct LD_LIBRARY_PATH, everything runs fine. If I try to link static, the pthread_create returns "operation not permitted" (error code 1). Does anybody have an idea where to... (1 Reply)
Discussion started by: Micky
1 Replies

10. UNIX for Dummies Questions & Answers

"Operation not permitted" when copying directories

I'm kicking Unix questions out like Bruce Lee. So I'm copying a directory of files, in each directory I inevitablly get this: I get that for usually the same set of directories/files in each folder. Is there a way to override this when copying files? (4 Replies)
Discussion started by: JPigford
4 Replies
Login or Register to Ask a Question