LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-21-2015, 12:19 PM   #1
ss32
Member
 
Registered: Apr 2013
Distribution: Ubuntu, Linux Mint, RHEL, CentOS
Posts: 43

Rep: Reputation: Disabled
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)
 
Old 08-21-2015, 07:12 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Looking at this output-

Code:
vim is already the newest version.
Vim should already be installed. To check and see that it is run this command.

Code:
dpkg -L vim
Dpkg should confirm that vim is either installed or it's not.

Have you tried to open your konsole and type vim (name of file)?

Did you recently upgrade your distribution?

http://askubuntu.com/questions/56018...pilation-error
http://ubuntuforums.org/showthread.php?t=2241684&page=2
 
Old 08-21-2015, 07:31 PM   #3
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
vim tends to be installed by default in most distros if I'm not mistaken?

Play Bonny!

 
Old 08-21-2015, 07:37 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Soadyheid View Post
vim tends to be installed by default in most distros if I'm not mistaken?

Play Bonny!

Your right, most distriubution's come with vim.:-
 
Old 08-24-2015, 12:00 PM   #5
ss32
Member
 
Registered: Apr 2013
Distribution: Ubuntu, Linux Mint, RHEL, CentOS
Posts: 43

Original Poster
Rep: Reputation: Disabled
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)
 
Old 08-24-2015, 12:15 PM   #6
ss32
Member
 
Registered: Apr 2013
Distribution: Ubuntu, Linux Mint, RHEL, CentOS
Posts: 43

Original Poster
Rep: Reputation: Disabled
I've solved it. The sa-compile script needs to be modified. The section around line 278 needs

Code:
  mkdir "$dirpath", 755;
added. So the entire block will look like this
Code:
  $log = ">>$dirpath/log";
  # empty it
  mkdir "$dirpath", 755;
  open(ZERO, ">$dirpath/log")  or die "cannot create $dirpath/log: $!";
 
Old 08-24-2015, 12:22 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Are things OK now and working correctly?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble running Spyce on Ubuntu 10.10 hrfister Ubuntu 1 07-09-2011 12:38 AM
Having trouble getting world of warcraft running on ubuntu 8.10 sincapation Linux - Newbie 1 03-08-2009 07:06 PM
Assertion failed when running software (and compile problem) brickwalden Linux - Software 1 05-08-2006 07:19 PM
Trouble running make to compile example scull device driver taillefer Programming 3 03-23-2004 12:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration