Results 1 to 10 of 10

Thread: dpkg error coded 1 when removing gnome-shell

  1. #1
    Join Date
    Oct 2007
    Location
    Virginia, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    dpkg error coded 1 when removing gnome-shell

    Tried sudo apt-get remove gnome-shell -f Didn't work Still returns:
    Errors were encountered while processing:
    gnome-shell
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    How so I fix this?

    Thanks in advance.

  2. #2
    Join Date
    Oct 2007
    Location
    Virginia, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: dpkg error coded 1 when removing gnome-shell

    I also got:

    E: gnome-shell: subprocess installed post-removal script returned error exit status 127

    when I tried to remove it with synaptic.

  3. #3
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: dpkg error coded 1 when removing gnome-shell

    Try try apt-get -f install

    apt-get upgrade

  4. #4
    Join Date
    Oct 2007
    Location
    Virginia, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: dpkg error coded 1 when removing gnome-shell

    Now I got this after running the above:

    james@james-desktop:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    gnome-shell
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 2,245kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 213323 files and directories currently installed.)
    Removing gnome-shell ...
    /var/lib/dpkg/info/gnome-shell.postrm: 10: glib-compile-schemas: not found
    dpkg: error processing gnome-shell (--remove):
    subprocess installed post-removal script returned error exit status 127
    Errors were encountered while processing:
    gnome-shell
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    james@james-desktop:~$ sudo apt-get -f upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    gnome-shell
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 2,245kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 213323 files and directories currently installed.)
    Removing gnome-shell ...
    /var/lib/dpkg/info/gnome-shell.postrm: 10: glib-compile-schemas: not found
    dpkg: error processing gnome-shell (--remove):
    subprocess installed post-removal script returned error exit status 127
    Errors were encountered while processing:
    gnome-shell
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  5. #5
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: dpkg error coded 1 when removing gnome-shell

    Back to square one

  6. #6
    wojox is offline I Ubuntu, Therefore, I Am
    Join Date
    Apr 2009
    Beans
    8,628

    Re: dpkg error coded 1 when removing gnome-shell

    sudo apt-get clean
    sudo apt-get update

  7. #7
    Join Date
    Oct 2007
    Location
    Virginia, USA
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: dpkg error coded 1 when removing gnome-shell

    I deleted everything in /var/lib/dpkg/info/ that had to do with gnome-shell. Now I am no longer getting the error message. When I removed it I got:

    james@james-desktop:~$ sudo apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    gnome-shell
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 2,245kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ...
    dpkg: warning: files list file for package `gnome-shell' missing, assuming package has no files currently installed.
    (Reading database ... 213322 files and directories currently installed.)
    Removing gnome-shell ...


    I don't know if I actually removed gnome-shell but I can add and remove programs now.

  8. #8
    Join Date
    Mar 2009
    Beans
    6

    Re: dpkg error coded 1 when removing gnome-shell

    I also had the same problem. Here is what i did to fix it.

    sudo gedit /var/lib/dpkg/info/gnome-shell.postrm

    in that file there is a line: remove|purge) glib-compile-schemas /usr/share/glib-2.0/schemas ;;

    replace that line with: install) glib-compile-schemas /usr/share/glib-2.0/schemas ;;

    Save and close it.

    Then run: sudo apt-get purge gnome-shell
    Last edited by rp88; June 24th, 2010 at 01:58 AM.

  9. #9
    Join Date
    Jul 2009
    Location
    Brisbane, Australia
    Beans
    108
    Distro
    Ubuntu 12.04 Precise Pangolin

    Red face Had the same problem...

    Dude, it's illegal to be that smart

    Thanks man, you're a life-saver

    ~STEELBANANA

  10. #10
    Join Date
    Jun 2008
    Beans
    4

    Re: dpkg error coded 1 when removing gnome-shell

    @rp88

    Thanks, that fixed it!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •