Announcement

Collapse
No announcement yet.

Removing a .deb package

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Removing a .deb package

    I installed lios OCR .deb package (all dependencies met) and it crashes. But I can't seem to remove it now.

    sudo apt-get remove lios
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
    lios
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 8,602 kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 282598 files and directories currently installed.)
    Removing lios ...
    sudo: update-desktop-database: command not found
    dpkg: error processing lios (--remove):
    subprocess installed pre-removal script returned error exit status 1
    sudo: update-desktop-database: command not found
    dpkg: error while cleaning up:
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    lios
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    When I try to remove/purge through package manager:

    Package: lios
    Error: Package is in a very bad inconsistent state - you should reinstall it before attempting a removal

    When I reinstall it nothing changes.
    Last edited by Wallace; Oct 27, 2012, 04:32 AM.

    #2
    it probably built for gnome desktop
    update-desktop-database is part of desktop-file-utils and it's probably installed on every computer that have gnome
    try to install desktop-file-utils before removing the program

    (you can also try to run lios from command line and tell us what it reports, we may help you run it successfully)

    Comment


      #3
      wallace@wallace-den:~$ sudo apt-get install desktop-file-utils
      [sudo] password for wallace:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: The package lios needs to be reinstalled, but I can't find an archive for it.



      Package manager won't let me install desktop-file-utils either. Claims changes could not be applied since some packages could not be downloaded.

      wallace@wallace-den:~$ lios
      lios: command not found
      Last edited by Wallace; Oct 27, 2012, 05:53 AM.

      Comment


        #4
        Now I cant update my system at all. Packages could not be downloaded

        Comment


          #5
          Try this:
          Code:
          sudo dpkg --configure -a
          You also may want to check your logs. dpkg is the program returning errors so have a look at /var/log/dpkg.log The most recent entries in this log are at the bottom so scroll down to the bottom and post everything starting from when you tried installing lios.

          Comment


            #6
            Ya already tried "sudo dpkg --configure -a" but no luck. This lios package has really hosed my system.

            /var/log/dpkg.log

            Begining:

            2012-10-02 07:19:35 startup archives unpack
            2012-10-02 07:19:39 upgrade python-software-properties 0.82.7.2 0.82.7.3
            2012-10-02 07:19:39 status half-configured python-software-properties 0.82.7.2
            2012-10-02 07:19:39 status unpacked python-software-properties 0.82.7.2
            2012-10-02 07:19:39 status half-installed python-software-properties 0.82.7.2
            2012-10-02 07:19:40 status triggers-pending man-db 2.6.1-2
            2012-10-02 07:19:40 status half-installed python-software-properties 0.82.7.2
            2012-10-02 07:19:40 status half-installed python-software-properties 0.82.7.2
            2012-10-02 07:19:40 status unpacked python-software-properties 0.82.7.3
            2012-10-02 07:19:40 status unpacked python-software-properties 0.82.7.3
            2012-10-02 07:19:41 upgrade software-properties-kde 0.82.7.2 0.82.7.3
            2012-10-02 07:19:41 status half-configured software-properties-kde 0.82.7.2
            2012-10-02 07:19:41 status unpacked software-properties-kde 0.82.7.2
            2012-10-02 07:19:41 status half-installed software-properties-kde 0.82.7.2
            2012-10-02 07:19:41 status half-installed software-properties-kde 0.82.7.2
            2012-10-02 07:19:41 status half-installed software-properties-kde 0.82.7.2
            2012-10-02 07:19:41 status unpacked software-properties-kde 0.82.7.3
            2012-10-02 07:19:42 status unpacked software-properties-kde 0.82.7.3
            2012-10-02 07:19:42 trigproc man-db 2.6.1-2 2.6.1-2
            2012-10-02 07:19:42 status half-configured man-db 2.6.1-2
            2012-10-02 07:19:43 status installed man-db 2.6.1-2
            2012-10-02 07:19:44 startup packages configure
            2012-10-02 07:19:44 configure python-software-properties 0.82.7.3 <none>
            2012-10-02 07:19:44 status unpacked python-software-properties 0.82.7.3
            2012-10-02 07:19:44 status half-configured python-software-properties 0.82.7.3
            2012-10-02 07:19:44 status installed python-software-properties 0.82.7.3
            2012-10-02 07:19:44 configure software-properties-kde 0.82.7.3 <none>
            2012-10-02 07:19:44 status unpacked software-properties-kde 0.82.7.3
            2012-10-02 07:19:44 status half-configured software-properties-kde 0.82.7.3
            2012-10-02 07:19:44 status installed software-properties-kde 0.82.7.3
            2012-10-03 10:19:33 startup archives unpack
            2012-10-03 10:19:38 upgrade libc-bin 2.15-0ubuntu10 2.15-0ubuntu10.2
            2012-10-03 10:19:38 status half-configured libc-bin 2.15-0ubuntu10
            2012-10-03 10:19:38 status unpacked libc-bin 2.15-0ubuntu10
            2012-10-03 10:19:38 status half-installed libc-bin 2.15-0ubuntu10
            2012-10-03 10:19:38 status triggers-pending man-db 2.6.1-2
            2012-10-03 10:19:38 status half-installed libc-bin 2.15-0ubuntu10

            End lines:

            012-10-27 19:25:59 status half-configured lios 1.4
            2012-10-27 19:26:59 startup packages remove
            2012-10-27 19:26:59 status half-configured lios 1.4
            2012-10-27 19:27:35 startup archives install
            2012-10-27 19:27:36 upgrade lios 1.4 1.4
            2012-10-27 19:27:36 status half-configured lios 1.4
            2012-10-27 19:30:57 startup packages purge
            2012-10-27 19:30:57 status half-configured lios 1.4
            2012-10-27 20:00:16 startup archives install
            2012-10-27 20:00:21 upgrade lios 1.4 1.4
            2012-10-27 20:00:21 status half-configured lios 1.4
            2012-10-27 20:02:20 startup packages purge
            2012-10-27 20:02:20 status half-configured lios 1.4
            2012-10-27 20:40:16 startup archives install
            2012-10-27 20:40:20 upgrade lios 1.4 1.4
            2012-10-27 20:40:20 status half-configured lios 1.4
            2012-10-27 20:51:06 startup archives install
            2012-10-27 20:51:07 upgrade lios 1.4 1.4
            2012-10-27 20:51:07 status half-configured lios 1.4
            2012-10-27 21:46:29 startup packages purge
            2012-10-27 21:46:29 status half-configured lios 1.4
            2012-10-27 22:44:22 startup packages configure
            2012-10-27 22:46:30 startup packages configure
            2012-10-27 22:49:16 startup packages configure
            2012-10-27 22:49:38 startup archives install
            2012-10-27 22:49:43 upgrade lios 1.4 1.4
            2012-10-27 22:49:43 status half-configured lios 1.4
            Last edited by Wallace; Oct 27, 2012, 07:55 AM.

            Comment


              #7
              You checked your logs?

              Comment


                #8
                Yes I posted some of the /var/log/dpkg.log

                Comment


                  #9
                  Browse till the folder with the deb package , and hit alt-f4 to open a terminal in that location.

                  Enter this to force dpkg to uninstall, hopefully ignoring the error.

                  Code:
                  sudo dpkg -r --force-all
                  Sent from my SCH-I510 using Tapatalk 2
                  Last edited by claydoh; Oct 27, 2012, 04:07 PM.

                  Comment


                    #10
                    Originally posted by claydoh View Post
                    Browse to the folder with the deb package , and hit alt-f4 to open a terminal in that location.

                    Enter this to force dpkg to uninstall, hopefully ignoring the error.

                    Code:
                    sudo dpkg -i --force-all
                    That isn't the option to un-install, which is what the OP is wanting at this point.
                    -i, --install package-file...
                    Install the package. If --recursive or -R option is specified,
                    package-file must refer to a directory instead.
                    I think what might be needed is to browse to the folder with the deb package, hit alt-f4 to open a terminal, and then type:
                    Code:
                    sudo dpkg -r --force-all
                    -r, --remove, -P, --purge package...|-a|--pending
                    Remove an installed package. -r or --remove remove everything
                    except conffiles. This may avoid having to reconfigure the pack‐
                    age if it is reinstalled later. (Conffiles are configuration
                    files that are listed in the DEBIAN/conffiles control file). -P
                    or --purge removes everything, including conffiles. If -a or
                    --pending is given instead of a package name, then all packages
                    unpacked, but marked to be removed or purged in file
                    /var/lib/dpkg/status, are removed or purged, respectively. Note:
                    some configuration files might be unknown to dpkg because they
                    are created and handled separately through the configuration
                    scripts. In that case, dpkg won't remove them by itself, but the
                    package's postrm script (which is called by dpkg), has to take
                    care of their removal during purge. Of course, this only applies
                    to files in system directories, not configuration files written
                    to individual users' home directories.

                    Last edited by Snowhog; Oct 27, 2012, 12:35 PM.
                    Windows no longer obstructs my view.
                    Using Kubuntu Linux since March 23, 2007.
                    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                    Comment


                      #11
                      Darned autocomplete! Thought I edited that twice to get the -r

                      Sent from my SCH-I510 using Tapatalk 2

                      Comment


                        #12
                        wallace@wallace-den:~/Downloads$ sudo dpkg -r --force-all lios
                        dpkg: warning: overriding problem because --force enabled:
                        Package is in a very bad inconsistent state - you should
                        reinstall it before attempting a removal.
                        (Reading database ... 282598 files and directories currently installed.)
                        Removing lios ...
                        sudo: update-desktop-database: command not found
                        dpkg: error processing lios (--remove):
                        subprocess installed pre-removal script returned error exit status 1
                        sudo: update-desktop-database: command not found
                        dpkg: error while cleaning up:
                        subprocess installed post-installation script returned error exit status 1
                        Errors were encountered while processing:
                        lios

                        Comment


                          #13
                          This seemed to work in the end:

                          cd /var/lib/dpkg/info
                          sudo rm lios.*

                          sudo dpkg --remove --force-remove-reinstreq lios

                          Just hope I didnt mess anything up. Was able to run normal update and upgrade after this.

                          Comment


                            #14
                            Glad you got this figured out. I dont know what lios is, but I sure as hell wont be installing it on my machine

                            Comment


                              #15
                              I believe it's this..........

                              http://ubuntuforums.org/showthread.php?t=1903221

                              shows how to install.
                              Alienware 17 R2
                              ​ 8 × Intel® Core™ i7-4720HQ CPU @ 2.60GHz
                              ​ with Kubuntu 23.10
                              Nvidia Graphics
                              16 Ram
                              Close Windows and open the world!!

                              Comment

                              Working...
                              X