Marwan00
Posts: 23
Joined: Sun Oct 29, 2017 11:46 am

I can't install the package.

Sun Oct 29, 2017 12:04 pm

While I was upgrading raspberry pi by sudo apt-get upgrade , I accidentally closed the terminal the terminal while unpacking .so I used (dpkg) but not working . also , I can't use sudo apt-get upgrade any more showing error dpkg in package (install-info) .so , I deleted the package by (purge) and sudo apt-get upgrade worked normally but i can't install package again :( .
I tried using this showing:

Code: Select all

 pi@raspberrypi:~ $ sudo apt-get install install-info
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  install-info
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/307 kB of archives.
After this operation, 351 kB of additional disk space will be used.
Selecting previously unselected package install-info.
(Reading database ... 130696 files and directories currently installed.)
Preparing to unpack .../install-info_6.3.0.dfsg.1-1+b1_armhf.deb ...
Unpacking install-info (6.3.0.dfsg.1-1+b1) ...
Setting up install-info (6.3.0.dfsg.1-1+b1) ...
/usr/sbin/update-info-dir: 3: /etc/default/locale: �: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)

epoch1970
Posts: 5132
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: I can't install the package.

Tue Oct 31, 2017 12:21 pm

Your system is probably in a broken state, try "apt-get -f install" to see if it can finish the upgrade you interrupted.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

Marwan00
Posts: 23
Joined: Sun Oct 29, 2017 11:46 am

Re: I can't install the package.

Mon Nov 06, 2017 10:25 am

This code doesn't work also .It shows

Code: Select all

pi@raspberrypi:~ $ sudo apt-get -f install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up install-info (6.3.0.dfsg.1-1+b1) ...
/usr/sbin/update-info-dir: 3: /etc/default/locale: �: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1) 

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: I can't install the package.

Tue Nov 07, 2017 12:26 pm

Try
sudo update-locale LANG=en_GB.UTF-8
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Marwan00
Posts: 23
Joined: Sun Oct 29, 2017 11:46 am

Re: I can't install the package.

Wed Nov 08, 2017 9:05 pm

It's also showing

Code: Select all

pi@raspberrypi:~ $ sudo update-locale LANG=en_GB.UTF-8
pi@raspberrypi:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gstreamer1.0-omx scratch2
0 upgraded, 0 newly installed, 0 to remove and 2 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 install-info (6.3.0.dfsg.1-1+b1) ...
/usr/sbin/update-info-dir: 3: /etc/default/locale: �: not found
dpkg: error processing package install-info (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $ 
Also My pi starts with black screen so I
restart it by ssh then it return good.

FabioPG
Posts: 14
Joined: Tue Oct 10, 2017 9:59 am

Re: I can't install the package.

Sat Jun 23, 2018 6:37 pm

After I tried to upgrade my raspbian i’m exact;y with this problem. Some services (ssh server) does not start on boot too. How to fix it ? Thanks :|

KentuckyUS_WillOS
Posts: 1
Joined: Sat Feb 29, 2020 5:41 pm

Re: I can't install the package.

Wed Mar 18, 2020 8:25 pm

Same with me, it says a package a could not be found that allows the action to complete. What package should I install?

hertell
Posts: 1
Joined: Mon May 18, 2020 5:37 pm

Re: I can't install the package.

Mon May 18, 2020 5:40 pm

If someone is still struggling with this issue regarding install-info, i soved it by removing install-info. At the same time also the info-package was removed. When this was finished, i simply re-installed install-info + info. This solved the problem for me

Return to “Troubleshooting”