Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I try to install any new package or upgrade a package, it fails with below mentioned error:

Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...
/etc/environment: line 1: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory

dpkg: error processing install-info (--configure):
 subprocess installed post-installation script returned error exit status 1

No apport report written because MaxReports is reached already
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

I checked all the directories mentioned in PATH variable exists.

share|improve this question
    
What Ubuntu release are you running? –  Mitch Sep 6 '12 at 5:37
    
I am using 10.10. –  mahima Sep 6 '12 at 5:47
    
The problem is not in the path names. It is in the fact that something other than /bin/sh (tcsh maybe?) is interpreting /etc/environment. Note the error message. Do you have a non default SHELL variable set when running this? –  arielf Sep 7 '12 at 20:35
    
My default SHELL variable is set to /bin/bash and i haven't modified it. –  mahima Sep 10 '12 at 6:27

1 Answer 1

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo dpkg -r install-info
sudo apt-get update
sudo apt-get install -f
sudo apt-get upgrade
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.