blumzi / LAST_tools

Various LAST management tools
0 stars 0 forks source link

ssh problems with the new last08w (identity changed) #41

Open EastEriq opened 1 week ago

EastEriq commented 1 week ago

e.g.

ocs@last08w:~$ sudo last-tool -n enforce ssh
[sudo] password for ocs: 
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap
last-tool: FATAL: macmap_getent_by_mac: Missing mac=18:c0:4d:82:1e:0b in /usr/local/share/last-tool/files/MACmap

[SECT] Ssh
[FAIL] No LAST-CONTAINER with files/ssh directory
[FAIL] Missing /files/ssh/pass.enc.

Trying to install something with last-asroot -c 'apt install ....' from last10e

...
[SECT] last08w:
[FAIL] ssh failure (status=100)
[FAIL] Error(s)
[FAIL]   
[FAIL]   WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
[FAIL]   
[FAIL]   E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc !=
[FAIL]   E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/keyrings/postgresql-archive-keyring.gpg
[FAIL]   E: The list of sources could not be read.
[FAIL]   E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc !=
[FAIL]   E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/keyrings/postgresql-archive-keyring.gpg
[FAIL]   E: The list of sources could not be read.

[SECT] last10e:
...

how to fix?

EastEriq commented 6 days ago

Since I wanted to move on with #42 I fixed it locally by changing the line

#D8:5E:D3:04:DC:21  10.23.1.16  last08w last16
18:c0:4d:82:1e:0b       10.23.1.16      last08w last16

in /usr/local/share/last-tool/files/MACmap, but clearly the issue should be fixed at source. Now sudo last-tool -n enforce ssh is ok but still I cannot apt install.

sudo last-tool -n enforce apt gives:

[SECT] Apt
[ OK ] Config file /etc/apt/apt.conf contains the Weizmann Inst. proxies.
[ OK ] We have Google's "Linux Package Signing Keys" installed
[ OK ] We have Google's apt sources list (/etc/apt/sources.list.d/google.list)
[ OK ] vscode: We already have the Microsoft key
[ OK ] vscode: We already have the source list
[INFO] Updating apt ...
E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != 
E: Conflicting values set for option Signed-By regarding source https://apt.postgresql.org/pub/repos/apt/ focal-pgdg: /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc != /usr/share/keyrings/postgresql-archive-keyring.gpg
E: The list of sources could not be read.
[ OK ] auto-update: Already disabled (/etc/apt/apt.conf.d/20auto-upgrades)
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable unattended-upgrades
[ OK ] Stopped and disabled the "unattended-upgrades" service.
EastEriq commented 6 days ago

untagged postgresql here image and removed that image but at no avail

EastEriq commented 6 days ago

removing /etc/apt/sources.list.d/postgresql.list and running sudo apt update got me past of that "Conflicting values set for option Signed-By" error, and I could apt install redis.

postgresql shouldn't be on last08w anyway, right?