-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems installing latest version using go install #797
Comments
Hey @Gest10n, Thank you for your interest in adsys, and for reporting this bug. This is because some of our test files contain the Just a note that by installing adsys this way you don't benefit from the full functionality of the package such as the systemd service, PAM module, shell completion etc -- so you'd have to run the adsysd daemon by hand. For the complete experience we recommend installing adsys from the Ubuntu archive ( |
I installed Ubuntu 23.10 with the latest version of Adsys but I get the following error when doing a sudo login print error Welcome to Ubuntu Mantic Minotaur (development branch) (GNU/Linux 6.5.0-5-generic x86_64)
0 updates can be applied immediately. Last login: jue sep 28 16:51:49 -05 2023 on pts/8 Ubuntu
|
I have the next issue to install the latest version
Comand install
go install github.com/ubuntu/adsys@latest
os version Kubuntu 23.04
Golang version: go version go1.20.3 linux/amd64
print error
go: downloading github.com/ubuntu/adsys v0.13.1
go: github.com/ubuntu/adsys@latest: create zip: internal/ad/admxgen/testdata/TestGenerateExpandedCategories/defs/category definition doesn't exist/20.04.yaml: malformed file path "internal/ad/admxgen/testdata/TestGenerateExpandedCategories/defs/category definition doesn't exist/20.04.yaml": invalid char '''
internal/ad/admxgen/testdata/TestGenerateExpandedCategories/defs/policy directory doesn't exist.yaml: malformed file path "internal/ad/admxgen/testdata/TestGenerateExpandedCategories/defs/policy directory doesn't exist.yaml": invalid char '''
internal/ad/registry/testdata/one_container_with_2_children_don’t_mix_their_default_values.pol: malformed file path "internal/ad/registry/testdata/one_container_with_2_children_don’t_mix_their_default_values.pol": invalid char '’'
internal/ad/registry/testdata/one_container_with_2_children_don’t_mix_their_meta_values.pol: malformed file path "internal/ad/registry/testdata/one_container_with_2_children_don’t_mix_their_meta_values.pol": invalid char '’'
internal/ad/registry/testdata/two_containers_don’t_mix_their_default_values_even_when_second_has_none.pol: malformed file path "internal/ad/registry/testdata/two_containers_don’t_mix_their_default_values_even_when_second_has_none.pol": invalid char '’'
internal/ad/registry/testdata/two_containers_don’t_mix_their_default_values_when_redefined.pol: malformed file path "internal/ad/registry/testdata/two_containers_don’t_mix_their_default_values_when_redefined.pol": invalid char '’'
internal/ad/registry/testdata/two_containers_don’t_mix_their_meta_values__even_if_second_has_none.pol: malformed file path "internal/ad/registry/testdata/two_containers_don’t_mix_their_meta_values__even_if_second_has_none.pol": invalid char '’'
internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/polkit-1/localauthority.conf.d/99-adsys-privilege-enforcement.conf: malformed file path "internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/polkit-1/localauthority.conf.d/99-adsys-privilege-enforcement.conf": invalid char '''
internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/polkit-1/localauthority.conf.d/notadsys.conf: malformed file path "internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/polkit-1/localauthority.conf.d/notadsys.conf": invalid char '''
internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/sudoers.d/99-adsys-privilege-enforcement: malformed file path "internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/sudoers.d/99-adsys-privilege-enforcement": invalid char '''
internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/sudoers.d/notadsys: malformed file path "internal/policies/privilege/testdata/TestApplyPolicy/golden/don't_overwrite_other_existing_files/sudoers.d/notadsys": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/apparmor.d/adsys/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/apparmor.d/adsys/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/adsys: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/adsys": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/locks/adsys: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/locks/adsys": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/polkit-1/localauthority.conf.d/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/polkit-1/localauthority.conf.d/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/sudoers.d/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/sudoers.d/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/systemd/system/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/etc/systemd/system/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.ready: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.ready": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.running: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.running": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logoff: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logoff": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logon: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logon": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/empty-subfolder/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/empty-subfolder/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/final-machine-script.sh: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/final-machine-script.sh": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/otherfolder/script-user-logoff: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/otherfolder/script-user-logoff": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-shutdown: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-shutdown": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-startup: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-startup": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-user-logon: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-user-logon": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/subfolder/other-script: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/subfolder/other-script": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-data: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-data": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-script: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-script": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/shutdown: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/shutdown": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/startup: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/startup": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/users/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/users/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/sys/kernel/security/apparmor/profiles: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/sys/kernel/security/apparmor/profiles": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/policies: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_rules_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/policies": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/apparmor.d/adsys/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/apparmor.d/adsys/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/adsys: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/adsys": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/locks/adsys: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/dconf/db/machine.d/locks/adsys": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/polkit-1/localauthority.conf.d/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/polkit-1/localauthority.conf.d/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/sudoers.d/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/sudoers.d/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/systemd/system/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/etc/systemd/system/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.ready: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.ready": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.running: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/.running": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logoff: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logoff": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logon: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/logon": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/empty-subfolder/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/empty-subfolder/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/final-machine-script.sh: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/final-machine-script.sh": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/otherfolder/script-user-logoff: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/otherfolder/script-user-logoff": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-shutdown: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-shutdown": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-startup: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-machine-startup": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-user-logon: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/script-user-logon": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/subfolder/other-script: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/subfolder/other-script": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-data: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-data": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-script: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/scripts/unreferenced-script": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/shutdown: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/shutdown": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/startup: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/machine/scripts/startup": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/users/.empty: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/run/adsys/users/.empty": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/sys/kernel/security/apparmor/profiles: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/sys/kernel/security/apparmor/profiles": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/assets.db: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/assets.db": invalid char '''
internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/policies: malformed file path "internal/policies/testdata/TestApplyPolicies/golden/second_call_with_no_subscription_don't_remove_scripts_if_session_hasn’t_ended/var/cache/adsys/policies/hostname/policies": invalid char '''
any idea ?
The text was updated successfully, but these errors were encountered: