Anunţ

Caută printre mesajele de pe forum înainte de a scrie unul nou!
Formulează corect întrebarea sau problema pe care o ai.
Respectă regulile forumului și Codul de Conduită!

#1 29 Aug 2013 22:09:44

xxx
Membru nou
Înregistrat: 29 Aug 2013
Mesaje: 3

problema /var/lib/dpkg/status

Salut,

Mai intai primeam eroarea E: Sub-process /usr/bin/dpkg returned an error code (2).
Am sters prin  rm /var/lib/dpkg/available crezand ca voi scapa de ea, bineinteles habar nu stiam ce fac:(.

Acum primesc o alte erori la sudo apt-get install,update,upgrade etc :

E: Malformed 1st word in the Status line
E: Error occurred while processing postfix (UsePackage3)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.


Am incercat :

sudo apt-get install -f
sudo dpkg --configure -a
sudo dpkg --clear-avail && sudo apt-get update
sudo touch /var/lib/dpkg/status


Nu as vrea sa reinstalez sitemul pentru ca am conexiune stick digi, semnal slab si as pierde prea mult timp la update-uri.
Am tot cautat pe forumuri si nu am gasit nimic care sa mearga pana acum.
Sper sa ma ajutati voi.

Multumesc,

Offline

 

#2 29 Aug 2013 22:41:36

Ăla mic
Moderator
Locaţie: Constanța
Înregistrat: 10 Feb 2010
Mesaje: 5592

Re: problema /var/lib/dpkg/status

Am sters ...... bineinteles habar nu stiam ce fac

Pune rezultatul comenzii :

Cod:

sudo apt-get install -f

.


[REZOLVAT] ? => DONEAZĂ !   GRUB2   E1-571    Ce este un forum?   Anti-troll   Ubuntu = umanitate către ceilalți

Offline

 

#3 30 Aug 2013 02:54:09

V3n3RiX
Membru
Locaţie: Birmingham UK
Înregistrat: 03 Sep 2011
Mesaje: 1019
Site web

Re: problema /var/lib/dpkg/status

Iete ca ti-am inventat eu o solutie :

Cod:

sudo rm -rf /var/lib/dpkg/status
for i in $(dpkg -l|awk {'print $2'}|grep -v Status|grep -v Reinst|grep -v Name); do aptitude show $i; done | sudo tee /var/lib/dpkg/status

Nu ma intreba ce face carnatul ala, nu stiu sa iti explic pe intelesul tau. Important e ca merge, am testat eu. Apropo, o sa dureze ceva timp pana termina.

Dupa ce faci asta, dai din nou :

Cod:

sudo apt-get update

Si vedem ce e de facut, daca mai e ceva de facut.

Editat ultima oară de V3n3RiX (30 Aug 2013 02:56:25)


Distribution : Kogaion Linux 3 amd64
Desktop Environment : Xfce 4.12
System Information : Dual Quad Core Intel Xeon E5430 @ 2.66GHz + 24 GB Buffered Quad Channel ECC RAM
Blog : http://venerix.rogentos.ro

Offline

 

#4 30 Aug 2013 11:28:57

xxx
Membru nou
Înregistrat: 29 Aug 2013
Mesaje: 3

Re: problema /var/lib/dpkg/status

Va multumesc pentru raspunsuri.

Cand dau apt-get install -f imi apare:
Reading package lists... Done
Segmentation faulty tree... 50%

Cand am tastat in consola /lib/dpkg/status mi-a aparut:
bash: /lib/dpkg/status: No such file or directory

Iar la comanda urmatoare nu apare nimic : for i in $(dpkg -l|awk {'print $2'}|grep -v Status|grep -v Reinst|grep -v Name); do aptitude show $i; done | sudo tee /var/lib/dpkg/status

aptitude show
[100%] Building dependency treeSegmentation fault

Am dat "vi /var/lib/dpkg/status" si mi-a aparut output:

E325: ATTENTION
Found a swap file by the name "/var/lib/dpkg/.status.swp"
          owned by: root   dated: Thu Aug 29 22:44:45 2013
         file name: /var/lib/dpkg/status
          modified: no
         user name: root   host name: xxx-N61PC-M2S
        process ID: 7145
While opening file "/var/lib/dpkg/status"
             dated: Fri Aug 30 11:17:42 2013
      NEWER than swap file!

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /var/lib/dpkg/status"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/var/lib/dpkg/.status.swp"
    to avoid this message.

Swap file "/var/lib/dpkg/.status.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

Update-ul functioneaza acum cu urmatoarea eroare :

W: GPG error: http://extras.ubuntu.com raring Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_raring_universe_source_Sources  Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

Offline

 

#5 30 Aug 2013 13:39:20

V3n3RiX
Membru
Locaţie: Birmingham UK
Înregistrat: 03 Sep 2011
Mesaje: 1019
Site web

Re: problema /var/lib/dpkg/status

In /var/lib/dpkg/status se afla o lista detaliata a tuturor pachetelor instalate in sistem. Acea comanda genereaza respectiva lista si rescrie /var/lib/dpkg/status fisier pe care tu l-ai sters. Iata un exemplu :

Cod:

==[ venerix @ shakuras ] - [ ~ ]
==[$]> for i in $(dpkg -l|awk {'print $2'}|grep -v Status|grep -v Reinst|grep -v Name); do aptitude show $i; done | sudo tee /var/lib/dpkg/status
Package: accountsservice
State: installed
Automatically installed: no
Version: 0.6.15-2ubuntu9.6
Priority: standard
Section: gnome
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 324 k
Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.88),
         libglib2.0-0 (>= 2.25.11), libpolkit-gobject-1-0 (>= 0.99),
         libaccountsservice0 (= 0.6.15-2ubuntu9.6), dbus
Suggests: gnome-control-center
Conflicts: accountsservice
Description: query and manipulate user account information
 The AccountService project provides a set of D-Bus interfaces for querying and
 manipulating user account information and an implementation of these
 interfaces, based on the useradd, usermod and userdel commands.
Homepage: http://cgit.freedesktop.org/accountsservice/

Package: acl
State: installed
Automatically installed: no
Multi-Arch: foreign
Version: 2.2.51-5ubuntu1
Priority: optional
Section: utils
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 188 k
Depends: libacl1 (>= 2.2.51-5), libc6 (>= 2.4)
Conflicts: acl
Provides: acl
Provided by: acl
Description: Access control list utilities
 This package contains the getfacl and setfacl utilities needed for manipulating
 access control lists.
Homepage: http://savannah.nongnu.org/projects/acl/

Package: acpi-support
State: installed
Automatically installed: no
Version: 0.140.1
Priority: optional
Section: admin
Maintainer: Ubuntu Core developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Uncompressed Size: 139 k
Depends: x11-xserver-utils, acpid (>= 1.0.4-1ubuntu4), hdparm, lsb-base (>=
         1.3-9ubuntu3), powermgmt-base, laptop-detect, dmidecode (>= 2.7-1),
         libc6 (>= 2.4), pm-utils, consolekit
Recommends: toshset, radeontool, xinput, wireless-tools
Conflicts: uswsusp (<= 0.2), uswsusp (<= 0.2), acpi-support
Description: scripts for handling many ACPI events
 This package contains scripts to react to various ACPI events. It only includes
 scripts for events that can be supported with some level of safety cross
 platform. 
 
 It is able to: 
 * Detect loss and gain of AC power, lid closure, and the press of a number of
   specific buttons (on Asus, IBM, Lenovo, Panasonic, Sony and Toshiba laptops).
 * Suspend, hibernate and resume the computer, with workarounds for hardware
   that needs it. 
 * On some laptops, set screen brightness.

Dureaza ceva timp pana scrie toate pachetele in lista, dar la sfarsit vei avea un fisier complet. In cazul tau se pare ca ai probleme cu aptitude(?!?). Vadca ai mai incercat sa il editezi si cu vi ai facut o ciorba pe acolo.

Acum iti recomand urmatoarele :

Cod:

sudo rm -rf /var/lib/dpkg/.status*
sudo rm -rf /var/lib/dpkg/status
for i in $(dpkg -l|awk {'print $2'}|grep -v Status|grep -v Reinst|grep -v Name); do aptitude show $i; done | sudo tee /var/lib/dpkg/status

Pana una alta, poate ne lamuresti si pe noi ce versiune de Ubuntu folosesti. Ah, si sa nu uit: NU mai executa comenzi aiurea. O sa il strici si mai tare si nu o sa te putem ajuta.


Distribution : Kogaion Linux 3 amd64
Desktop Environment : Xfce 4.12
System Information : Dual Quad Core Intel Xeon E5430 @ 2.66GHz + 24 GB Buffered Quad Channel ECC RAM
Blog : http://venerix.rogentos.ro

Offline

 

#6 30 Aug 2013 15:17:01

Ăla mic
Moderator
Locaţie: Constanța
Înregistrat: 10 Feb 2010
Mesaje: 5592

Re: problema /var/lib/dpkg/status

1.

V3n3RiX a scris:

....  NU mai executa comenzi aiurea....

2. La fiecare comandă care-ți este sugerată NU mai "povesti" eroarea ci copiază și lipește, folosind opțiunea "Code" de formatare a mesajelelor pe forum, comanda dată și răspunsul sistemului.
.


[REZOLVAT] ? => DONEAZĂ !   GRUB2   E1-571    Ce este un forum?   Anti-troll   Ubuntu = umanitate către ceilalți

Offline

 

#7 04 Sep 2013 22:48:25

xxx
Membru nou
Înregistrat: 29 Aug 2013
Mesaje: 3

Re: problema /var/lib/dpkg/status

Va salut,

Se pare ca am reusit sa "busesc" de tot sistemul.
Acum nu mai imi intra deloc in el, se pare ca nu imi vede "OK" partitia de root, nu mai booteaza, nici macar nu mai functioneaza tastatura(nu pot sa dau Ctrl+Shift+F1) sau alte taste.

Va multumesc tutor pentru raspunsuri, m-am decis sa reinstalez sistemul.
Sincer, nu stiam sa adaug BBcode, nu vazusem optiunea, dar vazusem ca voi adaugati COD in mesaje, imi cer scuze.

Pe viitor incerc sa nu mai dau comenzi aiurea.

Offline

 
Feed

Antet forum

Powered by FluxBB