taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
732 stars 86 forks source link

What happen with GAM, other command could not run #167

Closed mvn-bachhuynh-dn closed 2 years ago

mvn-bachhuynh-dn commented 3 years ago

Hi there, After installed GAM, I got this error when type another command:

$pass
ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users>
Help: Syntax in file /bin/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

pass command is not related to GAM, so why terminal show the GAM error?

I tried to uninstall it already, but errors still.

  gam                                                                                                                          
zsh: no such file or directory: /home/asiantech/bin/gamadv-xtd3/gam

  which gam                                                                                                                  
gam: aliased to /home/asiantech/bin/gamadv-xtd3/gam

  pass                                                                                                                         
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found
Command: bash >>>/usr/bin/pass<<<

ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users>
Help: Syntax in file /bin/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki

Please help me out! Thank you!

mvn-bachhuynh-dn commented 3 years ago

Even this command:

[3/07/21 4:35:23] ➜  ~ /bin/bash --version
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found
GAMADV-XTD3 5.31.25 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.scroggs@gmail.com>
Python 3.9.1 64-bit final
google-api-python-client 1.9.3
httplib2 0.18.1
Linux Ubuntu 18.04 Bionic x86_64
Path: /bin
Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:
taers232c commented 3 years ago

Please show the actual command you type and the output.

Ross

@.***

On Jul 3, 2021, at 9:08 AM, Bach Huynh V. VN.Danang @.***> wrote:

Hi there, After installed GAM, I got this error when type another command:

$pass ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users> Help: Syntax in file /bin/GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki pass command is not related to GAM, so why terminal show the GAM error?

I tried to uninstall it already, but errors still.

 gam
zsh: no such file or directory: /home/asiantech/bin/gamadv-xtd3/gam

 which gam
gam: aliased to /home/asiantech/bin/gamadv-xtd3/gam

 pass
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found Command: bash >>>/usr/bin/pass<<<

ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users> Help: Syntax in file /bin/GamCommands.txt Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki Please help me out! Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/167, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL2U6HJMC5QMAEZJXKTTV4YX5ANCNFSM47YITDAQ.

mvn-bachhuynh-dn commented 3 years ago

HI @taers232c Thank you for you quick reply, this is command:

/bin/bash --version

This is result

WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found
GAMADV-XTD3 5.31.25 - https://github.com/taers232c/GAMADV-XTD3 - pyinstaller
Ross Scroggs <ross.scroggs@gmail.com>
Python 3.9.1 64-bit final
google-api-python-client 1.9.3
httplib2 0.18.1
Linux Ubuntu 18.04 Bionic x86_64
Path: /bin
Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain:

Try another command:

sudo apt --fix-broken install

and output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 177 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-4.15.0-130-generic (4.15.0-130.134) ...
Setting up linux-image-4.15.0-76-generic (4.15.0-76.86) ...
Processing triggers for linux-image-4.15.0-130-generic (4.15.0-130.134) ...
/etc/kernel/postinst.d/dkms:
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found
Command: /bin/bash >>>/etc/kernel/postinst.d/dkms<<< 4.15.0-130-generic /boot/vmlinuz-4.15.0-130-generic

ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users>
Help: Syntax in file /bin/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki
run-parts: /etc/kernel/postinst.d/dkms exited with return code 2
dpkg: error processing package linux-image-4.15.0-130-generic (--configure):
 installed linux-image-4.15.0-130-generic package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-4.15.0-76-generic (4.15.0-76.86) ...
/etc/kernel/postinst.d/dkms:
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: client_secrets_json, Value: /home/asiantech/.gam/client_secrets.json, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /home/asiantech/.gam/oauth2.txt, Not Found
WARNING: Config File: /home/asiantech/.gam/gam.cfg, Section: DEFAULT, Item: oauth2service_json, Value: /home/asiantech/.gam/oauth2service.json, Not Found
Command: /bin/bash >>>/etc/kernel/postinst.d/dkms<<< 4.15.0-76-generic /boot/vmlinuz-4.15.0-76-generic

ERROR: Invalid choice (None): Expected <all|cigroup|cigroup_users|cigroups|courseparticipants|cros|cros_ou|cros_ou_and_children|cros_ous|cros_ous_and_children|cros_sn|croscsv|croscsv_sn|croscsvdata|croscsvfile|croscsvfile_sn|crosfile|crosfile_sn|crosqueries|crosquery|csv|csvdata|csvdatafile|csvfile|csvkmd|csvsubkey|datafile|domains|domains_ns|domains_susp|file|group|group_inde|group_ns|group_susp|group_users|group_users_ns|group_users_susp|groups|groups_inde|groups_ns|groups_susp|licenses|oauthuser|ou|ou_and_children|ou_and_children_ns|ou_and_children_susp|ou_ns|ou_susp|ous|ous_and_children|ous_and_children_ns|ous_and_children_susp|ous_ns|ous_susp|queries|query|students|teachers|user|users>
Help: Syntax in file /bin/GamCommands.txt
Help: Documentation is at https://github.com/taers232c/GAMADV-XTD3/wiki
run-parts: /etc/kernel/postinst.d/dkms exited with return code 2
dpkg: error processing package linux-image-4.15.0-76-generic (--configure):
 installed linux-image-4.15.0-76-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-image-4.15.0-130-generic
 linux-image-4.15.0-76-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
taers232c commented 3 years ago

Can you do a Meet/Zoom session in the next 30 minutes? Otherwise I will not be available until Tuesday.

Update to current version bash <(curl -s -S -L https://git.io/fhZWP) -l

Send invitation to ross.scroggs @ gmail.com

mvn-bachhuynh-dn commented 3 years ago

I totally delete gam I think: But, the weird is as my screenshot image

mvn-bachhuynh-dn commented 3 years ago

Hi @taers232c. How about now? https://meet.google.com/oud-idjy-kmg