I can't even remove samba4 because when I run apt-get remove samba the scripts try to INSTALL and configure it before it removes it. And of course the install/configure fails, therefore remove fails. :(
root@hemna:~:# apt-get remove samba Reading package lists... Done Building dependency tree Reading state information... Done Package samba is not installed, so not removed The following package was automatically installed and is no longer required: libsvga1 Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ... ERROR: Invalid smb.conf ERROR: Invalid smb.conf Administrator password will be set randomly! Looking up IPv4 addresses Looking up IPv6 addresses No IPv6 address will be assigned Setting up secrets.ldb Setting up the registry Setting up the privileges database Setting up idmap db Setting up SAM db Setting up sam.ldb partitions and settings Setting up sam.ldb rootDSE Pre-loading the Samba 4 and AD schema Adding DomainDN: DC=ass Adding configuration container Setting up sam.ldb schema Setting up sam.ldb configuration data Setting up display specifiers Adding users container Modifying users container Adding computers container Modifying computers container Setting up sam.ldb data Setting up well known security principals Setting up sam.ldb users and groups Setting up self join Traceback (most recent call last): File "/usr/share/samba/setup/provision", line 262, in <module> useeadb=eadb, next_rid=opts.next_rid, lp=lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1761, in provision am_rodc=am_rodc, lp=lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1461, in provision_fill domainsid, names.dnsdomain, names.domaindn, lp) File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1385, in setsysvolacl os.chown(os.path.join(root, name), -1, gid) OSError: [Errno 2] No such file or directory: '/tmp/.org.chromium.Chromium.51w0Gh/SingletonCookie' dpkg: error processing samba4 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: samba4 E: Sub-process /usr/bin/dpkg returned an error code (1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/832465 Title: upgradeprovision: guess_names: 'realm =' was not specified in supplied /etc/samba/smb.conf. Please remove the smb.conf file and let provision generate it To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/832465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs