Skip to content
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

apt can't locate package #37

Open
gabrielssanches opened this issue Feb 16, 2023 · 0 comments
Open

apt can't locate package #37

gabrielssanches opened this issue Feb 16, 2023 · 0 comments

Comments

@gabrielssanches
Copy link

I've been able to successfully install the generated ISO from user-data.example as is.
But after adding any package (tried with net-tools and zsh), it fails to find the package.

Then I'm left with the console, and there I can just call apt install zsh manually and it works.
It fetches from archive.ubuntu.com and installs.

I guess its something very basic that I'm missing...

ISO configuration:
autoinstall: version: 1 identity: hostname: ubuntu-server password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0" username: ubuntu network: version: 2 ethernets: enp0s3: dhcp4: true package_update: 'true' packages: - zsh
detailed log regardinng zsh installation:
`
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-hook/builtin/cmd-hook: curtin command hook
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-hook/builtin/cmd-hook: curtin command hook
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-hook/builtin: running 'curtin hook'
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-hook: finalizing installation
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-late: executing late commands
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install/stage-late: executing late commands
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install/cmd-install: curtin command install
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/curtin_install: installing system
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall: final system configuration
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/configure_cloud_init: configuring cloud-init
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Meta/status_GET
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/configure_cloud_init: configuring cloud-init
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/get_target_packages: calculating extra packages to install
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/get_target_packages: calculating extra packages to install
Feb 15 16:18:45 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/install_zsh: installing zsh
Feb 15 16:18:45 ubuntu-server systemd[1]: Started /snap/subiquity/3698/usr/bin/python3.8 -m curtin --showtrace -vvv --set json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}} system-install -t /target -- zsh.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: start: cmd-system-install: curtin command system-install
Feb 15 16:18:46 ubuntu-server curtin_event.2391.4[15627]: start: cmd-system-install: curtin command system-install
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--bind', '/dev', '/target/dev'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--bind', '/proc', '/target/proc'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--bind', '/run', '/target/run'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--bind', '/sys', '/target/sys'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['unshare', '--help'] with allowed return codes [0] (capture=True)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'eatmydata', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'zsh'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15638]: Reading package lists...
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15638]: Building dependency tree...
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15638]: Reading state information...
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15638]: E: Unable to locate package zsh
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: TIMED subp(['udevadm', 'settle']): 0.017
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/sys'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/sys'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/run'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-sys.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/run'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/proc'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-run.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/proc'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/dev'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-proc.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/dev'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: system install failed for ['zsh']: Unexpected error while running command.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'eatmydata', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'zsh']
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Exit code: 100
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Reason: -
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Stdout: ''
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Stderr: ''
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: finish: cmd-system-install: FAIL: curtin command system-install
Feb 15 16:18:46 ubuntu-server curtin_event.2391.4[15627]: finish: cmd-system-install: FAIL: curtin command system-install
Feb 15 16:18:46 ubuntu-server systemd[1]: target-dev.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server systemd[1]: run-u43.service: Main process exited, code=exited, status=100/n/a
Feb 15 16:18:46 ubuntu-server systemd[1]: run-u43.service: Failed with result 'exit-code'.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/install_zsh: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.

Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15638]: E: Unable to locate package zsh
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['udevadm', 'settle'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: TIMED subp(['udevadm', 'settle']): 0.017
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/sys'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/sys'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/run'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-sys.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/run'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/proc'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-run.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/proc'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['mount', '--make-private', '/target/dev'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server systemd[1]: target-proc.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Running command ['umount', '/target/dev'] with allowed return codes [0] (capture=False)
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: system install failed for ['zsh']: Unexpected error while running command.
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'eatmydata', 'apt-get', '--quiet', '--assume-yes', '--option=Dpkg::options::=--force-unsafe-io', '--option=Dpkg::Options::=--force-confold', 'install', 'zsh']
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Exit code: 100
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Reason: -
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Stdout: ''
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: Stderr: ''
Feb 15 16:18:46 ubuntu-server subiquity_log.2391[15627]: finish: cmd-system-install: FAIL: curtin command system-install
Feb 15 16:18:46 ubuntu-server curtin_event.2391.4[15627]: finish: cmd-system-install: FAIL: curtin command system-install
Feb 15 16:18:46 ubuntu-server systemd[1]: target-dev.mount: Succeeded.
Feb 15 16:18:46 ubuntu-server systemd[1]: run-u43.service: Main process exited, code=exited, status=100/n/a
Feb 15 16:18:46 ubuntu-server systemd[1]: run-u43.service: Failed with result 'exit-code'.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall/install_zsh: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install/postinstall: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.
Feb 15 16:18:46 ubuntu-server subiquity_event.2391[2391]: subiquity/Install/install: Command '['systemd-run', '--wait', '--same-dir', '--property', 'SyslogIdentifier=subiquity_log.2391', '--setenv', 'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin', '--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv', 'SNAP=/snap/subiquity/3698', '--', '/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald", "identifier": "curtin_event.2391.4"}}', 'system-install', '-t', '/target', '--', 'zsh']' returned non-zero exit status 100.

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant