Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    dpkg error!!!

    Reply
    accountvip | # 1 | 2011-09-27, 01:13 | Report

    I can't install or remove anything from Fast App Manager and x-terminal.
    It say:

    Help me!!!!!!!!!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Drexxx | # 2 | 2011-09-27, 01:25 | Report

    Edit the file:
    /var/lib/dpkg/info/account-plugin-salut.postinst
    and comment the line
    /etc/init.d/avahi-daemon start

    Code:
    #!/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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Drexxx For This Useful Post:
    accountvip

     
    accountvip | # 3 | 2011-09-27, 01:35 | Report

    /var/lib/dpkg/info/account-plugin-salut.postinst
    /var/lib/dpkg/info/account-plugin-salut.postinst: line 6: /etc/init.d/avahi-daemon: not found

    /etc/init.d/avahi-daemon start
    /bin/sh: /etc/init.d/avahi-daemon: not found

    Nooo, i don't want to flash.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Drexxx | # 4 | 2011-09-27, 01:43 | Report

    No! Don't execute! Edit the file!
    Don't worry.
    Sorry, I explained wrong. And please, sorry about my poor English.
    You can use nano, vim, leafpad... to edit the file.
    Code:
    nano /var/lib/dpkg/info/account-plugin-salut.postinst
    And then, put "#" in the line etc/init.d/avahi-daemon start to comment it...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Drexxx For This Useful Post:
    accountvip

     
    accountvip | # 5 | 2011-09-27, 01:55 | Report

    Successful!!
    Thank you very much.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    frendz07 | # 6 | 2012-03-08, 03:48 | Report

    Originally Posted by Drexxx View Post
    No! Don't execute! Edit the file!
    Don't worry.
    Sorry, I explained wrong. And please, sorry about my poor English.
    You can use nano, vim, leafpad... to edit the file.
    Code:
    nano /var/lib/dpkg/info/account-plugin-salut.postinst
    And then, put "#" in the line etc/init.d/avahi-daemon start to comment it...
    bro can u explain code in detail !??
    my terminal says
    dpkg not found !!!! :-(

    Edit | Forward | Quote | Quick Reply | Thanks

     
    frendz07 | # 7 | 2012-03-08, 03:49 | Report

    Originally Posted by frendz07 View Post
    bro can u explain code in detail !??
    my terminal says
    dpkg not found !!!! :-(
    i mean step by step

    Edit | Forward | Quote | Quick Reply | Thanks

     
    demolition | # 8 | 2012-03-08, 04:56 | Report

    Originally Posted by frendz07 View Post
    dpkg not found !!!! :-(
    Yup, dpkg needs to be run as superuser in order to be useful. The only thing it will do as normal user is display help (--help).
    To overcome this:

    1. Open the terminal (called X Term in programme menu)
    2. Type sudo gainroot
    - you are now superuser and can quite easily trash your device!
    - this state is limited to the terminal and will end when you close the terminal (don't worry, it's not like being windows administrator!).

    People argue over whether nano or vi is the best - they're in line text editors, run from the terminal.
    Although vi & nano are possible options, it's actually easier to use leafpad or a stand alone editor on the N900.

    To edit an ascii (plain text) file you probably do need to terminal to start with...
    1. a. Open the terminal (called X Term in programme menu)
    2. a. Type sudo gainroot
    3. a. Type leafpad <file-path>

    1. b. Open Filebox
    2. b. Navigate to desired folder
    3. b. From hover menu, select "Edit" for desired file.
    4. Make the edits.
    5. Save & close.

    Both methods, a and b, assume rootsh and leafpad are installed.
    Method (b) assumes Filebox is installed as well, and Leafpad is its text-editor.

    As per instructions above...
    Originally Posted by
    And then, put "#" in the line etc/init.d/avahi-daemon start to comment it...
    In case you need to install rootsh, Filebox or leafpad...
    If the application manager is all frozen up when trying to downlad repository data etc, turn off all internet connections and transfer the deb files to the device via your pc with your device in usb mass storage mode. If you double click on a deb file in the built in file manager, the application manager will handle the installation.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by demolition; 2012-03-08 at 05:02.

     
    frendz07 | # 9 | 2012-03-08, 10:22 | Report

    but still my problem is not solved!!!!!

    my problems:
    1) while doing apt-get autoremove
    it gives error " could not exec dpkg"

    2) am not able to install any application through app manager or fam or x-terminal

    3) when i tried "apt-get install dpkg"
    it says cant install!!!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout