Posted: Tue Apr 26, 2022 6:59 am Post subject: permission issue using apt to install MQ
Knight
Joined: 25 Aug 2006 Posts: 589
I followed the instructions to install MQ on Ubentu
This is what I did and the errro I got
root@UB01:/etc/apt/sources.list.d# cat mq-install.list
deb [trusted=yes] file:/root/MQServer ./
root@UB01:/etc/apt/sources.list.d# apt-get update
Get:1 file:/root/MQServer ./ InRelease
Ign:1 file:/root/MQServer ./ InRelease
Get:2 file:/root/MQServer ./ Release
:
Get:3 file:/root/MQServer ./ Packages
Err:3 file:/root/MQServer ./ Packages
File not found - /root/MQServer/./Packages (2: No such file or directory)
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
:
Fetched 3,818 kB in 3s (1,438 kB/s)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/root/MQServer/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch file:/root/MQServer/./Packages File not found - /root/MQServer/./Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
I ran the command "chmod -R a+rx /root/MQServer " as suggested and got the same error.
I even change the command to chmod -R 777 /root/MQServer but no luck.
The permission on the directory and file is shown below
root@UB01:/etc/apt/sources.list.d# cd /root/
root@UB01:~# ls -l
total 8
drwxrwxrwx 5 bin bin 4096 Nov 5 06:50 MQServer
root@UB01:~# cd MQServer/
root@UB01:~/MQServer# ls -l
total 774404
-rwxrwxrwx 1 bin bin 223 Nov 5 06:50 copyright
-rwxrwxrwx 1 bin bin 2424502 Nov 5 06:35 ibmmq-amqp_9.2.4.0_amd64.deb
-rwxrwxrwx 1 bin bin 6662 Nov 5 06:36 ibmmq-ams_9.2.4.0_amd64.deb
:
drwxrwxrwx 4 bin bin 4096 Nov 5 06:50 lap
drwxrwxrwx 2 bin bin 4096 Nov 5 06:50 licenses
-rwxrwxrwx 1 bin bin 13442 Nov 5 06:50 mqlicense.sh
-rwxrwxrwx 1 bin bin 5624 Nov 5 06:50 Packages.gz
drwxrwxrwx 2 bin bin 4096 Nov 5 06:50 READMES
root@UB01:~/MQServer#
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum