Hallo zusammen,
ich versuche gerade eine lmn7.2 auf 22.04 zu installieren. Die Installation des lmn-prepare Packets klappt noch gut, der eigentlich Prepare-Prozess scheitert aber beim Setup von sophomorix-samba, der relevante Teil der Ausgabe scheint zu sein:
Setting up sophomorix-samba (3.90.6-2) ...
#### Reading /etc/samba/smb.conf ####
Use of uninitialized value $domain in transliteration (tr///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 4123.
Use of uninitialized value $domain in split at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 4124.
Use of uninitialized value $server_dns in transliteration (tr///) at /usr/share/perl5/Sophomorix/SophomorixBase.pm line 4128.
{
"samba" => {
"from_smb.conf" => {
"DomainDNS" => "DC=",
"ServerDNS" => undef
},
"smb.conf" => {
"global" => {
"log file" => "/var/log/samba/log.%m",
"logging" => "file",
"map to guest" => "bad user",
"max log size" => 1000,
"obey pam restrictions" => "yes",
"pam password change" => "yes",
"panic action" => "/usr/share/samba/panic-action %d",
"passwd chat" => "*Enter\\snew\\s*\\spassword:* %n\\n *Retype\\snew\\s*\\spassword:* %n\\n *password\\supdated\\ssuccessfully* .",
"passwd program" => "/usr/bin/passwd %u",
"server role" => "standalone server",
"server string" => "%h server (Samba, Ubuntu)",
"unix password sync" => "yes",
"usershare allow guests" => "yes",
"workgroup" => "WORKGROUP"
},
"print\$" => {
"browseable" => "yes",
"comment" => "Printer Drivers",
"guest ok" => "no",
"path" => "/var/lib/samba/printers",
"read only" => "yes"
},
"printers" => {
"browseable" => "no",
"comment" => "All Printers",
"create mask" => "0700",
"guest ok" => "no",
"path" => "/var/spool/samba",
"printable" => "yes",
"read only" => "yes"
}
}
}
}
##### sophomorix-postinst start #####
* Testing /etc/linuxmuster/sophomorix/sophomorix.conf
Installing /etc/linuxmuster/sophomorix/sophomorix.conf
* Testing for /etc/linuxmuster/sophomorix/default-school/school.conf
Installing /etc/linuxmuster/sophomorix/default-school/school.conf
* Installing netlogon example scripts for school default-school:
Use of uninitialized value in concatenation (.) or string at /usr/sbin/sophomorix-postinst line 86.
Overwrite lmn/linux: /default-school/lmn/linux/logon.sh
Overwrite lmn/linux: /default-school/lmn/linux/logoff.sh
Overwrite lmn/linux: /default-school/lmn/linux/sysstart.sh
Overwrite lmn/linux: /default-school/lmn/linux/sysstop.sh
Use of uninitialized value in concatenation (.) or string at /usr/sbin/sophomorix-postinst line 102.
Create custom/linux: /default-school/custom/linux/logon.sh
Create custom/linux: /default-school/custom/linux/logoff.sh
Create custom/linux: /default-school/custom/linux/sysstart.sh
Create custom/linux: /default-school/custom/linux/sysstop.sh
Use of uninitialized value in concatenation (.) or string at /usr/sbin/sophomorix-postinst line 123.
Overwrite lmn/windows: /default-school/lmn/windows/logon.bat
Overwrite lmn/windows: /default-school/lmn/windows/logoff.bat
Overwrite lmn/windows: /default-school/lmn/windows/sysstart.bat
Overwrite lmn/windows: /default-school/lmn/windows/sysstop.bat
Use of uninitialized value in concatenation (.) or string at /usr/sbin/sophomorix-postinst line 139.
Create custom/windows: /default-school/custom/windows/logon.bat
Create custom/windows: /default-school/custom/windows/logoff.bat
Create custom/windows: /default-school/custom/windows/sysstart.bat
Create custom/windows: /default-school/custom/windows/sysstop.bat
* Updating rolegroups (sophomorix 3.79.3 or later) ...
... this can take a few minutes ...
* Updating rolegroups ... done!
* Testing for sophomorix schema update
ltdb: tdb(/var/lib/samba/private/sam.ldb): tdb_open_ex: could not open file /var/lib/samba/private/sam.ldb: No such file or directory
Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Failed to connect to '/var/lib/samba/private/sam.ldb' with backend 'tdb': Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
Failed to connect to /var/lib/samba/private/sam.ldb - Unable to open tdb '/var/lib/samba/private/sam.ldb': No such file or directory
WARNING: No Sophomorix-Schema-Version in AD found: Skipping updates
##### sophomorix-postinst end #####
und tatsächlich ist /var/lib/samba komplett leer. Es läuft dann weiter, gegen Ende kommt noch:
e[1me[38;5;214mSet default sophomorix webui rightse[39me[0m
Command line::
Hmmh. do not know what to do with option info
Option json is a modifier option
Option verbose is a modifier option
* forcing info mode
Option combinations successfully checked
ERROR: Connection to AD failed: No password found!
sophomorix connects to AD with the user administrator:
A) Make sure administrator exists:
samba-tool user create administrator %<password>%
(Replace <password> according to: samba-tool domain passwordsettings show)
B) Store the Password of administrator (without newline character) in:
/etc/linuxmuster/.secret/administrator
e[1me[38;5;214mVerifying upload foldere[39me[0m
setfacl: Invalid argument in line 9 of file /usr/lib/linuxmuster-webui/etc/install_scripts/webuiUpload.ntacl
dpkg: error processing package linuxmuster-webui7 (--configure):
installed linuxmuster-webui7 package post-installation script subprocess returned error exit status 2
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of linuxmuster-base7:
linuxmuster-base7 depends on linuxmuster-webui7; however:
Package linuxmuster-webui7 is not configured yet.
dpkg: error processing package linuxmuster-base7 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linuxmuster-linbo7:
linuxmuster-linbo7 depends on linuxmuster-base7; however:
Package linuxmuster-base7 is not configured yet.
dpkg: error processing package linuxmuster-linbo7 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linuxmuster-linbo-gui7:
linuxmuster-linbo-gui7 depends on linuxmuster-linbo7 (>= 2.4.0); however:
Package linuxmuster-linbo7 is not configured yet.
dpkg: error processing package linuxmuster-linbo-gui7 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is reached already
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
linuxmuster-webui7
linuxmuster-base7
linuxmuster-linbo7
linuxmuster-linbo-gui7
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Der Prozess läuft dann weiter und endet gemeinerweise mit einer Erfolgsmeldung:
### lmn-prepare
## Profile
## Network
## Remove unnecessary stuff
# Activating quota.
## Installing updates and host specific software
## Passwords
# root ... OK!
## Writing configuration
Failed to write /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg!
## The system has been prepared with the following values:
# Profile : server
# Hostname : hostname
# Domain : meine.domain
# IP : IP-Adresse
# Netmask : Maske
# Firewall : Firewall-IP
# Gateway : Firewall-IP
# Interface : eth0
# Swapsize : 2G
### Finished - a reboot is necessary!
Beim linuxmuster-setup kommen dann diverse Meldungen über fehlende python-Module die sicherlich eher folge des obigen Problems sind, daher spare ich mir hier die Logs.
Mein prepare-Aufruf, falls relevant:
lmn-prepare -i -u \
-p server \
-t hostname \
-d meine.domain \
-n IP/Maske \
-f Firewall-IP \
-g Firewall-IP
Ist das ein Bug, oder mache ich was falsch?