Page MenuHomePureOS Tracker

"ERROR: Invalid smb.conf" […] with long hostnames
Closed, InvalidPublic

Description

"Plan" would not install from Software store. Please see attached screenshot for error report

Event Timeline

I just tried and installation went fine for me so I can't reproduce this @chris.lamb can you reproduce it? Also @james.rufer can you try running sudo apt install --reinstall samba-common-bin and then try again installing the package?

Here is report from terminal after running

After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for samba-common-bin:amd64

what the...did you maybe enable multiarch on PureOS (aka adding 32bit packages/libs). Also what sources do you have enabled (did you add any sources on your own?).

Installing "Plan" works fine for me. I suspect the installation failure here is a symptom of a different problem. Can you try and do an PureOS upgrade on the command line? ie. sudo apt update && sudo apt dist-upgrade and look specifically for any samba issues?

@zlatan.todoric This is my only source

deb https://repo.puri.sm/pureos/ green main

@chris.lamb I had updated about 2 hours ago and there was no change. However, I encountered a new error report:

Setting up samba-common-bin (2:4.8.2+dfsg-1) ...
Checking smb.conf

WARNING: The "syslog" option is deprecated netbios name LIBREM15V3-ENTERPRISE-PUREOS is not a valid netbios name ERROR: Invalid smb.conf dpkg: error processing package samba-common-bin (--configure): installed samba-common-bin package post-installation script subprocess returned error exit status 255 Errors were encountered while processing: samba-common-bin E: Sub-process /usr/bin/dpkg returned an error code (1)

Odd thing is when I went into the menu to open another application, "Plan" and "Plan Work package" are now installed and both launch despite all of the errors reported in this ticket.

@james.rufer

Odd thing is when I went into the menu to open another application, "Plan" and "Plan Work package" are now installed

Yeah, I really suspect that the "Plan" installation failure is just a symptom of your broken system or some other broken package ^

Before we go any further, please print output of the following:

dpkg --print-architecture
dpkg --print-foreign-architectures

Please also attach/upload your entire dpkg.log - there be some very valuable context that we are missing due to you copy-pasting the bits you think are relevant.

And your smb.conf please! Sorry, not sure why I didn't ask before given that the error message clearly says it is "invalid"

oot@librem15v3-enterprise-pureos:/home/james# dpkg --print-architecture
amd64
root@librem15v3-enterprise-pureos:/home/james# dpkg --print-foreign-architectures
i386

chris.lamb renamed this task from "Plan" would not install from Software store to "ERROR: Invalid smb.conf" […] "samba-common-bin package post-installation script subprocess returned error exit status 255".Jun 21 2018, 09:47

@james.rufer (any reason why you added i386?)

Thanks for the smb.conf. This has not been modified from the default but samba will choke on long hostnames (eg. librem15v3-enterprise-pureos).

You can fix this by setting netbios name = shortername in your /etc/samba/smb.conf but the problem is your long hostname :)

chris.lamb renamed this task from "ERROR: Invalid smb.conf" […] "samba-common-bin package post-installation script subprocess returned error exit status 255" to "ERROR: Invalid smb.conf" […] with long hostnames.Jun 21 2018, 09:52

IIRC, we had a couple different customer questions about Steam functioning under PureOS, and even though I knew it wouldn't, I thought I should test so as to not tell them wrong. In other words, don't test on your production machine ;)

What I don't understand is why the long hostname would cause a problem with installing Plan and cause an invalid samba config.

This has nothing to do with Plan. You just happened to hit/see it whilst installing Plan.

I assume this is resolved.. as in, shorten your hostname? :)

jonas.smedegaard closed this task as Invalid.May 27 2021, 05:28
jonas.smedegaard removed zlatan.todoric as the assignee of this task.
jonas.smedegaard added a subscriber: zlatan.todoric.