ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » permission issue using apt to install MQ

Post new topic  Reply to topic
 permission issue using apt to install MQ « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Tue Apr 26, 2022 6:59 am    Post subject: permission issue using apt to install MQ Reply with quote

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.

This error is described on web page
https://www.ibm.com/docs/en/ibm-mq/9.1?topic=imluud-installing-mq-server-linux-ubuntu-using-debian-packages

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#

Is there anything I missed ??
Back to top
View user's profile Send private message
KIT_INC
PostPosted: Tue Apr 26, 2022 11:05 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Found the problem. I have to do chmod -R a+rx /root also. Not just chmod -R a+rx /root/MQServer .
Back to top
View user's profile Send private message
sparsons
PostPosted: Wed Jan 17, 2024 11:21 am    Post subject: Reply with quote

Newbie

Joined: 11 Mar 2002
Posts: 6

Thanks for posting your solution.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » permission issue using apt to install MQ
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.