Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: dephorban has remove package

  1. #1
    Join Date
    Dec 2007
    Beans
    9

    dephorban has remove package

    hi,

    i have problem:

    i have use deborphan,
    and now i can't start virtualbox,
    i can't go with firefox to page with flash
    i can't start thunderbird
    and i can't go with chrome to page with flash

    i have uninstall flash player because security

    i have install java 7 to try resolve this problem but now thunderbird don't work

    matbos

    i am french
    Last edited by matbos; September 28th, 2012 at 05:35 PM.

  2. #2
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: dephorban has remove package

    You can try update; configure -a; install -f. Or just manually rebuilding packages.

    This is when backup is a blessing.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    deborphan

    deborphan by itself does nothing. Can you explain a little what exactly you did and how you used it? That might help with finding a solution.

  4. #4
    Join Date
    Dec 2007
    Beans
    9

    Re: dephorban has remove package

    hi,

    my command:

    sudo apt-get install deborphan
    sudo apt-get remove $(deborphan) --purge
    sudo apt-get autoremove --purge `deborphan`
    sudo dpkg -P `dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2`
    find /media -maxdepth 2 -name ".Trash*" -delete

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    /var/lib/dpkg/status

    That was pretty thorough. It removed all the packages you added manually and then some.

    I haven't done this kind of recovery before so you will have to do reading on your own before trying. There should be a file /var/lib/dpkg/status-old that you can use to replace /var/lib/dpkg/status with. Or failing that use an older one from /var/backups/dpkg.status.* From there I think, but am not sure, that it might be possible to replace /var/lib/dpkg/status and then run 'sudo apt-get dselect-upgrade' and restore what you had.

  6. #6
    Join Date
    Dec 2007
    Beans
    9

    Re: dephorban has remove package

    in other forum, somebody ask me to use the end of

    /var/log/dpkg.log

    it is the ending of dpkg s'operation

    who can i find the removal of package in this log?
    Last edited by matbos; September 27th, 2012 at 07:43 PM.

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: dephorban has remove package

    The format of /var/log/dpkg.log is a little hard to work with, it's a log of what has been installed. Whereas the file /var/lib/dpkg/status (and /var/lib/dpkg/status-old) shows the state of the packages. I think the following should work to restore your machine based on what was in /var/lib/dpkg/status-old.

    Code:
    awk '$1=="Status:" && $2=="install" {print PACKAGE " install";PACKAGE=""};$1 == "Package:" {PACKAGE=$2}' /var/lib/dpkg/status-old | sudo dpkg --set-selections
    sudo apt-get dselect-upgrade
    Sorry for the long awk statement. The package status wan't always on the second line of the record.

  8. #8
    Join Date
    Dec 2007
    Beans
    9

    Re: dephorban has remove package

    Code:
    sudo apt-get dselect-upgradeLecture des listes de paquets... Fait
    Construction de l'arbre des dépendances       
    Lecture des informations d'état... Fait
    Les paquets suivants seront ENLEVÉS*:
      fglrx-updates*
    0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
    Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
    Souhaitez-vous continuer [O/n]*? o
    (Lecture de la base de données... 610175 fichiers et répertoires déjà installés.)
    Suppression de fglrx-updates ...
    Purge des fichiers de configuration de fglrx-updates ...
    update-initramfs: deferring update (trigger activated)
    update-rc.d: /etc/init.d/atieventsd exists during rc.d purge (use -f to force)
    dpkg*: erreur de traitement de fglrx-updates (--purge)*:
     le sous-processus script post-removal installé a retourné une erreur de sortie d'état 1
    Aucun rapport «*apport*» écrit car MaxReports a déjà été atteint
                                                                    Traitement des actions différées («*triggers*») pour «*initramfs-tools*»...
    update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic
    Des erreurs ont été rencontrées pendant l'exécution*:
     fglrx-updates
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    it's not this package

    do you want to have /var/lib/dpkg/status post?

  9. #9
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: dephorban has remove package

    Hmm. I tested on a spare machine, but could only guess at your exact situation. If you need to edit the list of packages manually you could do it like this:

    Code:
    awk '$1=="Status:" && $2=="install" {print PACKAGE " install";PACKAGE=""};$1 == "Package:" {PACKAGE=$2}' /var/lib/dpkg/status-old | sort> /tmp/x
    nano /tmp/x
    sudo dpkg --set-selections < /tmp/x
    sudo apt-get dselect-upgrade
    Last edited by Lars Noodén; September 28th, 2012 at 09:12 AM. Reason: added sort to make output easier to read

  10. #10
    Join Date
    Dec 2007
    Beans
    9

    Re: dephorban has remove package

    sorry

    but who what can i find to do in nano /tmp/x?

    where is the package i have deleted in past?

Page 1 of 2 12 LastLast

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
  •