maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   application manager error. dpkg reported error while processing package. (https://talk.maemo.org/showthread.php?t=72903)

yasirrfc 2011-05-09 13:23

application manager error. dpkg reported error while processing package.
 
hey when ever i try to install something through faster application manager it gives me an error dpkg reported error while processing package see log for details and heres the log:
/home/user # apt-get clean
/home/user # apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up account-plugin-salut (0.10) ...
/var/lib/dpkg/info/account-plugin-salut.postinst: line 6: /etc/init.d/avahi-daemon: not found
dpkg: error processing account-plugin-salut (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of telepathy-extras:
telepathy-extras depends on account-plugin-salut; however:
Package account-plugin-salut is not configured yet.
dpkg: error processing telepathy-extras (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
account-plugin-salut
telepathy-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)

JohnLF 2011-05-09 13:24

Re: application manager error. dpkg reported error while processing package.
 
I get it too. It is to do with extra conversations protocols; I just ignore it as other packages install fine.

yasirrfc 2011-05-09 13:48

Re: application manager error. dpkg reported error while processing package.
 
but i get the error all the time. with installing all applications. not just the protocols for conversations. even if i install a new theme or game. please help

misiak 2011-05-09 14:04

Re: application manager error. dpkg reported error while processing package.
 
It looks that the file /etc/init.d/avahi-daemon is somehow missing in the package... I uploaded mine (from package 0.8 from extras, seems only version 0.10 in extras-devel is broken) to : http://www.miskiewicz.org/files/avahi-daemon

If you still don't know what to do, these are the instructions (you may need to type "apt-get install wget" as root before if you don't have wget installed):
Code:

root
cd /etc/init.d
wget http://www.miskiewicz.org/files/avahi-daemon
chmod 755 avahi-daemon

Close terminal then and check if problem still occurs.

michaaa62 2011-05-09 16:02

Re: application manager error. dpkg reported error while processing package.
 
Edit /var/lib/dpkg/info/account-plugin-salut.postinst
Comment out the offending line with a #
Save the file, then
Code:

dpkg --configure -a

yasirrfc 2011-05-09 16:15

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by michaaa62 (Post 1002852)
Edit /var/lib/dpkg/info/account-plugin-salut.postinst
Comment out the offending line with a #
Save the file, then
Code:

dpkg --configure -a

can u please explain it to me? i dont think i understand. tell me what i should do.
thanks

misiak 2011-05-09 16:24

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by yasirrfc (Post 1002860)
can u please explain it to me? i dont think i understand. tell me what i should do.
thanks

Did you try to use my solution first? He suggested you to type:
Code:

root
leafpad /var/lib/dpkg/info/account-plugin-salut.postinst

and add at the beginning of line six (it is something like "/etc/init.d/avahi-daemon start") "#" (so it will look like "#/etc/init.d/avahi-daemon start"). If you don't have leafpad installed and cannot install any apps, it's totally not good, because you may need to use vi which is hard to use if you have never used it before...

yasirrfc 2011-05-09 16:28

Re: application manager error. dpkg reported error while processing package.
 
ok my phone is almost charged up. i will use your method first. then his. im gonna tell if it works.
thanks

yasirrfc 2011-05-09 16:52

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by misiak (Post 1002864)
Did you try to use my solution first? He suggested you to type:
Code:

root
leafpad /var/lib/dpkg/info/account-plugin-salut.postinst

and add at the beginning of line six (it is something like "/etc/init.d/avahi-daemon start") "#" (so it will look like "#/etc/init.d/avahi-daemon start"). If you don't have leafpad installed and cannot install any apps, it's totally not good, because you may need to use vi which is hard to use if you have never used it before...

hey i tried your method. i have wget. i wrote your commands and it said not found. now what should i do please help

yasirrfc 2011-05-09 16:55

Re: application manager error. dpkg reported error while processing package.
 
it said /bin/sh: wget://www.miskiewicz.org/files/avahi-demon: not found

misiak 2011-05-09 16:56

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by yasirrfc (Post 1002878)
hey i tried your method. i have wget. i wrote your commands and it said not found. now what should i do please help

Well, I forgot to add: you need to manually connect to Internet first (as most terminal commands are "stupid" and they cannot connect to Internet). If you are connected to Internet, maybe you made a typo?

misiak 2011-05-09 16:57

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by yasirrfc (Post 1002880)
it said /bin/sh: wget://www.miskiewicz.org/files/avahi-demon: not found

wget http://www.miskiewicz.org/files/avahi-daemon

you forgot "http" before "://" or, if it cannot accept that, just write wget www.miskiewicz.org/files/avahi-daemon (without "http://" at the beginning)

yasirrfc 2011-05-09 17:01

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by misiak (Post 1002883)
wget http://www.miskiewicz.org/files/avahi-daemon

you forgot "http" before "://" or, if it cannot accept that, just write wget www.miskiewicz.org/files/avahi-daemon (without "http://" at the beginning)

hey sorry ok i got it right but now it says length 2594 (2.5k) {text/plain}
avahi-daemon has sprung into existence.
retrying.

its doing it again n again.retrying again n again. what should i do?

misiak 2011-05-09 17:12

Re: application manager error. dpkg reported error while processing package.
 
Well, if it tries to download it again and again, you can just hit crtl+c on your keyboard to stop wget from running. Then you can type "ls -l avahi-daemon" to see if it shows "-rwxr-xr-x 1 root 2594 Mar 24 2009 avahi-daemon" or something similar. If yes, you can type the "chmod 755 avahi-daemon" command. If it says "No such file or directory" then we will investigate further...

yasirrfc 2011-05-09 17:28

Re: application manager error. dpkg reported error while processing package.
 
hey it says /bin/sh: Is: not found
both of the I are i's right? and not smal L's right? anyways what should i do now?

misiak 2011-05-09 17:31

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by yasirrfc (Post 1002899)
hey it says /bin/sh: Is: not found
both of the I are i's right? and not smal L's right? anyways what should i do now?

Well, nice shot, they are lowercase "L" ;) "LS -L AVAHI-DAEMON", but all lowercase.

yasirrfc 2011-05-09 17:38

Re: application manager error. dpkg reported error while processing package.
 
ok it says 21 may 9 03:46 avahi-daemon /lib/init/upstart-job
i then wrote chmod 755 avahi-daemon.
it said:
chmod: avahi-daemon: no such file or directory

misiak 2011-05-09 17:43

Re: application manager error. dpkg reported error while processing package.
 
ehh ok, forget that, something went wrong...
Try this instead (all letters lowercase, wach out for typos!):
Code:

root
touch /etc/init.d/avahi-daemon
chmod 755 /etc/init.d/avahi-daemon

That's the easiest way to repair your problem, but I tried earlier to help you more (too much I guess :P)

yasirrfc 2011-05-09 17:45

Re: application manager error. dpkg reported error while processing package.
 
when i write touch /etc/init.d/avahi-daemon, it says no such file or directory

yasirrfc 2011-05-09 17:48

Re: application manager error. dpkg reported error while processing package.
 
i opened xterm.
went root. then wrote touch /etc/init.d/avahi-daemon.
it said no such file or directory

JohnLF 2011-05-09 17:54

Re: application manager error. dpkg reported error while processing package.
 
yasirrfc, for you my friend, just do what I do and ignore the error. I get the error on every package I try to install, but you know what? The packages install anyway, the errors are completely safe to ignore.

misiak 2011-05-09 17:54

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by yasirrfc (Post 1002913)
i opened xterm.
went root. then wrote touch /etc/init.d/avahi-daemon.
it said no such file or directory

Man, you're doing something horribly wrong... if it says so, try typing
Code:

sudo touch /etc/init.d/avahi-daemon
sudo chmod 755 /etc/init.d/avahi-daemon

Instead. If it says 'no such file or directory, either you made a typo (check it) or your N900 is much more messed up than I think and you need someone else's help.

yasirrfc 2011-05-09 17:55

Re: application manager error. dpkg reported error while processing package.
 
what should i do

yasirrfc 2011-05-09 17:58

Re: application manager error. dpkg reported error while processing package.
 
still same. i checked letter to letter for mistakes but its perfect. it still says no file or directory. what was the other guy saying? can u tell m?e his solution?

yasirrfc 2011-05-09 17:59

Re: application manager error. dpkg reported error while processing package.
 
oh n btw i dont write the 2nd line. it says no such file or directory after the first line

yasirrfc 2011-05-09 18:04

Re: application manager error. dpkg reported error while processing package.
 
please help anyone

michaaa62 2011-05-09 18:17

Re: application manager error. dpkg reported error while processing package.
 
You need rootsh from extras repository installed for this to work
Code:

sudo gainroot
vi /var/lib/dpkg/info/account-plugin-salut.postinst

Inside the vi editor go down to line 6, the infamous /etc/init.d/avahi-daemon line.
Only type whats inside the brackets <>, note that : starts a command inside vi.
Type <i> for insert mode, type <#> to comment out the line, type <Esc> to leave insertion mode, type <:w> to write or save the file, type <:q> to quit the editor.
Do not tell me that vi sucks, i already know!
Then
Code:

dpkg --configure -a

JohnLF 2011-05-09 18:25

Re: application manager error. dpkg reported error while processing package.
 
...I have followed the instructions given by others in this thread to fix my problem, so I know it works. Please read very carefully, I shall type this only once...

1. Ensure you have an active internet connection.
2. Start the terminal.
3. Type
Code:

sudo gainroot
and press enter.
4. Type
Code:

leafpad /var/lib/dpkg/info/account-plugin-salut.postinst
and press enter.
5. If you get an error that leafpad cannot be found, go to step 6, otherwise goto step 7.
6. Only if you get an error about leafpad - type
Code:

apt-get install leafpad
and press enter. Go back to step 4 and try again.
7. On the leafpad screen go to line 6 (the last line of the file) which starts with /etc. At the beginning of the line type hash and a space, so the line reads
Code:

# /etc/init.d/avahi-daemon start
8. Click the top of the screen on the bar where it says account-plugin-salut.postinst
9. Click Save
10. Click the "X" in the top right to close Leafpad.
11. Switch back to Terminal and type
Code:

dpkg --configure -a
You will get two lines about setting up account-plugin-salut and telepathy-extras.
The problem is now fixed.

12. I strongly suggest you now disable the -devel and -testing repositorys as installing software from these, as stated, may mess up your phone. If you are not comfortable with that, then please do not install software from these sources.

yasirrfc 2011-05-09 18:26

Re: application manager error. dpkg reported error while processing package.
 
so u mean to say i should type i # Esc :w :q before that line? do it should look like
i#Esc:w:q/etc/init.d/avahi-daemon
right?and then i exit exterminal and then back on and write dpkg --configure -a
right?

yasirrfc 2011-05-09 18:41

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by JohnLF (Post 1002942)
...I have followed the instructions given by others in this thread to fix my problem, so I know it works. Please read very carefully, I shall type this only once...

1. Ensure you have an active internet connection.
2. Start the terminal.
3. Type
Code:

sudo gainroot
and press enter.
4. Type
Code:

leafpad /var/lib/dpkg/info/account-plugin-salut.postinst
and press enter.
5. If you get an error that leafpad cannot be found, go to step 6, otherwise goto step 7.
6. Only if you get an error about leafpad - type
Code:

apt-get install leafpad
and press enter. Go back to step 4 and try again.
7. On the leafpad screen go to line 6 (the last line of the file) which starts with /etc. At the beginning of the line type hash and a space, so the line reads
Code:

# /etc/init.d/avahi-daemon start
8. Click the top of the screen on the bar where it says account-plugin-salut.postinst
9. Click Save
10. Click the "X" in the top right to close Leafpad.
11. Switch back to Terminal and type
Code:

dpkg --configure -a
You will get two lines about setting up account-plugin-salut and telepathy-extras.
The problem is now fixed.

12. I strongly suggest you now disable the -devel and -testing repositorys as installing software from these, as stated, may mess up your phone. If you are not comfortable with that, then please do not install software from these sources.

i did everything u said. in the end when i wrote dpkg --configure -a, it said setting up account-plugin-salut.postinst: line 6: MyDocs: not found.
dpkg: error processing account-plugin-salut (--configure) : subprocess post-installation script returned error exit status 127.
error were encountered while processing:
account-plugin-salut

yasirrfc 2011-05-09 18:46

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by michaaa62 (Post 1002936)
You need rootsh from extras repository installed for this to work
Code:

sudo gainroot
vi /var/lib/dpkg/info/account-plugin-salut.postinst

Inside the vi editor go down to line 6, the infamous /etc/init.d/avahi-daemon line.
Only type whats inside the brackets <>, note that : starts a command inside vi.
Type <i> for insert mode, type <#> to comment out the line, type <Esc> to leave insertion mode, type <:w> to write or save the file, type <:q> to quit the editor.
Do not tell me that vi sucks, i already know!
Then
Code:

dpkg --configure -a

please can u explain it to me? i dont quite get it.
thanks

michaaa62 2011-05-09 19:23

Re: application manager error. dpkg reported error while processing package.
 
After you now edited the file please show its content to be sure what to edit, because the error from the dpkg command changed.
Code:

cat /var/lib/dpkg/info/account-plugin-salut.postinst
Do you have leafpad installed now?

yasirrfc 2011-05-09 19:50

Re: application manager error. dpkg reported error while processing package.
 
yes i have leafpad installed. i did everything that the guy before u told me too.

yasirrfc 2011-05-09 19:53

Re: application manager error. dpkg reported error while processing package.
 
i dont get what you're saying. after editing with leafpad now whenever i try to edit again like by leafpad again or vi, the line /etc/init.d/avahi-daemon has a * before it

yasirrfc 2011-05-09 19:53

Re: application manager error. dpkg reported error while processing package.
 
please help me im going nuts. i did everything with leafpad but still the error.HELP

michaaa62 2011-05-09 20:28

Re: application manager error. dpkg reported error while processing package.
 
Quote:

i did everything u said. in the end when i wrote dpkg --configure -a, it said setting up account-plugin-salut.postinst: line 6: MyDocs: not found.
This indicates that there is still something fishy with this file! Please paste the content of the file with the command
Code:

cat /var/lib/dpkg/info/account-plugin-salut.postinst

JohnLF 2011-05-09 20:29

Re: application manager error. dpkg reported error while processing package.
 
OK so please copy the contents of the file /var/lib/dpkg/info/account-plugin-salut.postinst and post it here.

JohnLF 2011-05-09 20:38

Re: application manager error. dpkg reported error while processing package.
 
There's too many people helping here. I think it is confusing the OP. I am now going to bow out and leave it to michaaa62 to resolve -

Michaaa62 - if you want me to take over, please PM me.

yasirrfc 2011-05-10 07:17

Re: application manager error. dpkg reported error while processing package.
 
Quote:

Originally Posted by michaaa62 (Post 1003020)
This indicates that there is still something fishy with this file! Please paste the content of the file with the command
Code:

cat /var/lib/dpkg/info/account-plugin-salut.postinst

it says, # ! /bin/sh

gtk-update-icon-cache /usr/share/icons/hicolor

# avahi doesn't like starting itself. this is a bit of a hack though.
* /etc/init.d/avahi-daemon start

now what should i do?
thanks

michaaa62 2011-05-10 09:59

Re: application manager error. dpkg reported error while processing package.
 
It must be no star *, but an hash # at the beginning of the file.


All times are GMT. The time now is 08:34.

vBulletin® Version 3.8.8