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

error installing on ub 2404 vm #3737

Open
tim-moody opened this issue May 2, 2024 · 13 comments
Open

error installing on ub 2404 vm #3737

tim-moody opened this issue May 2, 2024 · 13 comments
Labels
Milestone

Comments

@tim-moody
Copy link
Contributor

TASK [1-prep : Grab a clean copy of ssh.service] *************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Could not find or access '/usr/share/doc/avahi-daemon/examples/ssh.service' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

@tim-moody
Copy link
Contributor Author

root@ub2204base:/opt/iiab/iiab# ll /usr/share/doc/avahi-daemon/examples/
total 8
drwxr-xr-x 2 root root 4096 Apr 5 10:57 ./
drwxr-xr-x 3 root root 4096 May 2 17:45 ../

@holta
Copy link
Member

holta commented May 2, 2024

/usr/share/doc/avahi-daemon/examples/ssh.service is normally installed by apt package avahi_daemon which itself is normally installed by:

- name: 'Install 12 network packages: avahi-daemon, hostapd, iproute2, iptables-persistent, iw, libnss-mdns, netmask, net-tools, networkd-dispatcher, rfkill, wireless-tools, wpasupplicant -- later used by https://github.com/iiab/iiab/tree/master/roles/network'
package:
name:
- avahi-daemon # 97kB download: RasPiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon -- used with https://github.com/iiab/iiab/blob/master/roles/network/tasks/avahi.yml

Any chance you've set network_install: False — or some other reason the above is not being run?

Run /opt/iiab/iiab/scripts/iiab-diagnostics to share more context?

@holta holta added the question label May 2, 2024
@holta holta added this to the 8.2 milestone May 2, 2024
@tim-moody
Copy link
Contributor Author

I'm rerunning, but it looked like avahi was installed but was missing a file

@tim-moody
Copy link
Contributor Author

using stock local vars none

@tim-moody
Copy link
Contributor Author

Nope. I built an entirely new vm and got the same error

TASK [1-prep : Install Avahi (mDNS, Zeroconf/Bonjour)] *******************************************************************************
included: /opt/iiab/iiab/roles/network/tasks/avahi.yml for 127.0.0.1

TASK [1-prep : Create user 'avahi'] **************************************************************************************************
changed: [127.0.0.1]

TASK [1-prep : Install avahi announce config file /etc/avahi/services/schoolserver.service] ******************************************
changed: [127.0.0.1]

TASK [1-prep : Grab a clean copy of ssh.service] *************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Could not find or access '/usr/share/doc/avahi-daemon/examples/ssh.service' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}

@tim-moody
Copy link
Contributor Author

http://sprunge.us/06Gtk9

@tim-moody
Copy link
Contributor Author

/usr/share/doc/avahi-daemon/examples is just empty

@tim-moody
Copy link
Contributor Author

on Deb 12 I see

root@iiab-ref:~# ll /usr/share/doc/avahi-daemon/examples
total 20
drwxr-xr-x 2 root root 4096 Mar  1 18:30 .
drwxr-xr-x 3 root root 4096 Mar  1 18:30 ..
-rw-r--r-- 1 root root 1497 Apr  1  2015 example.service
-rw-r--r-- 1 root root 1075 Apr 19  2023 sftp-ssh.service
-rw-r--r-- 1 root root 1071 Apr 19  2023 ssh.service

@tim-moody
Copy link
Contributor Author

I patched it with ssh.service from deb 12 install and got past the error.

@holta
Copy link
Member

holta commented May 2, 2024

FWIW I cannot reproduce this, e.g. on this 24.04 VM: http://sprunge.us/942sP6?en

I'm rerunning, but it looked like avahi was installed but was missing a file

Can you create an empty 24.04 VM (do not install anything) and then run apt install avahi-daemon ?

For me this is the result:

root@u24:~# ll /usr/share/doc/avahi-daemon/examples
total 20
drwxr-xr-x 2 root root 4096 May  2 17:20 ./
drwxr-xr-x 3 root root 4096 May  2 17:20 ../
-rw-r--r-- 1 root root 1497 Apr  1  2015 example.service
-rw-r--r-- 1 root root 1075 Apr  5 06:57 sftp-ssh.service
-rw-r--r-- 1 root root 1071 Apr  5 06:57 ssh.service

(Is your result different? Any idea why if so?)

@tim-moody
Copy link
Contributor Author

root@ub2404base:~# ll /usr/share/doc/avahi-daemon/examples
total 8
drwxr-xr-x 2 root root 4096 Apr 5 10:57 ./
drwxr-xr-x 3 root root 4096 May 2 22:28 ../

@tim-moody
Copy link
Contributor Author

Wonder if it's my Canadian archive

root@ub2404base:~# cat /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://ca.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

@holta
Copy link
Member

holta commented May 2, 2024

Insane!

If apt is failing to deliver legit apt packages a week after 24.04's release, this sounds quite serious. ⚠️

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

No branches or pull requests

2 participants