[SOLVED] Ubuntu - Can't install software, running into trouble with sa-compile
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu - Can't install software, running into trouble with sa-compile
I'm trying to install vim, but this happens with any package and it's a new error for me. I recently updated and ran dist-upgrade as well. Looking around online others have run into a similar problem but I haven't found anything in the way of a widespread fix
Code:
# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
vim is already the newest version.
The following packages were automatically installed and are no longer required:
account-plugin-windows-live libupstart1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up sa-compile (3.4.0-1ubuntu2.1) ...
Running sa-compile (may take a long time)
cannot create ./.spamassassin5000WA9HJbtmp/log: No such file or directory at /usr/bin/sa-compile line 278.
dpkg: error processing package sa-compile (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
sa-compile
E: Sub-process /usr/bin/dpkg returned an error code (1)
Ok so it appears it did install but it's failing when trying to remove a package.
Code:
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
account-plugin-windows-live libupstart1
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 267 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 330296 files and directories currently installed.)
Removing account-plugin-windows-live (0.11+14.04.20140409.1-0ubuntu2) ...
Removing libupstart1:amd64 (1.12.1-0ubuntu4.2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Setting up sa-compile (3.4.0-1ubuntu2.1) ...
Running sa-compile (may take a long time)
cannot create ./.spamassassin23753qz51Oxtmp/log: No such file or directory at /usr/bin/sa-compile line 278.
dpkg: error processing package sa-compile (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
sa-compile
E: Sub-process /usr/bin/dpkg returned an error code (1)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.