Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:
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

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


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.