• Benvenuti su RaspberryItaly!
Benvenuto ospite! Login Login con Facebook Registrati Login with Facebook


Valutazione discussione:
  • 0 voto(i) - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
apt aggiornamento get errore software

[Problema] Errore Aggiornamento software apt-get
#1
Salve,

ho appena installato la nuova distribuzione buster sul mio raspberry PI 3.
In pratica ottengo un errore durante l'aggiornamento dei pacchetti.
Di seguito il dettaglio dell'errore:


Codice:
pi@raspberrypi:~ $ sudo apt-get update Trovato:1 http://archive.raspberrypi.org/debian buster InRelease Scaricamento di:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15,0 kB] Scaricamento di:3 http://raspbian.raspberrypi.org/raspbian buster/main Sources [11,3 MB] Scaricamento di:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13,0 MB] Recuperati 24,4 MB in 1min 45s (231 kB/s) Lettura elenco dei pacchetti... Fatto pi@raspberrypi:~ $

Tutto regolare.
Facendo upgrade:

Citazione:dpkg: errore fatale non recuperabile, uscita:
al file con l'elenco dei file del pacchetto "pypy" manca il newline finale
E: Sub-process /usr/bin/dpkg returned an error code (2)



Codice:
pi@raspberrypi:/etc/apt $ sudo apt-get upgrade Lettura elenco dei pacchetti... Fatto Generazione albero delle dipendenze Lettura informazioni sullo stato... Fatto Calcolo dell'aggiornamento... Fatto Il seguente pacchetto è stato installato automaticamente e non è più richiesto:  rpi.gpio-common Usare "sudo apt autoremove" per rimuoverlo. I seguenti pacchetti saranno aggiornati:  arandr bluealsa chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra gir1.2-pango-1.0 gldriver-test gstreamer1.0-plugins-good libfm-data libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libgs9 libgs9-common  libjavascriptcoregtk-4.0-18 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangoxft-1.0-0 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libvlc-bin libvlc5 libvlccore9 libwebkit2gtk-4.0-37 lxpanel  lxpanel-data lxterminal omxplayer patch pcmanfm pipanel python-rpi.gpio python3-rpi.gpio raspberrypi-bootloader raspberrypi-kernel raspberrypi-net-mods raspberrypi-sys-mods raspberrypi-ui-mods rc-gui rp-prefapps vlc vlc-bin vlc-data  vlc-l10n vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output vlc-plugin-video-splitter vlc-plugin-visualization 57 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati. È necessario scaricare 222 MB di archivi. Dopo quest'operazione, verranno occupati 86,0 kB di spazio su disco. Continuare? [S/n] s Scaricamento di:1 http://archive.raspberrypi.org/debian buster/main armhf chromium-browser-l10n all 74.0.3729.157-rpt5 [2.928 kB] Scaricamento di:2 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libpango-1.0-0 armhf 1.42.4-7~deb10u1 [168 kB] Scaricamento di:3 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libpangoft2-1.0-0 armhf 1.42.4-7~deb10u1 [62,0 kB] Scaricamento di:7 http://mirror.netcologne.de/raspbian/raspbian buster/main armhf libgs9 armhf 9.27~dfsg-2+deb10u1 [1.840 kB] Scaricamento di:4 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libpangocairo-1.0-0 armhf 1.42.4-7~deb10u1 [51,7 kB] Scaricamento di:5 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libpangoxft-1.0-0 armhf 1.42.4-7~deb10u1 [47,3 kB] Scaricamento di:6 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf gir1.2-pango-1.0 armhf 1.42.4-7~deb10u1 [55,5 kB] Scaricamento di:9 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libwebkit2gtk-4.0-37 armhf 2.24.2-1+rpi1 [8.497 kB] Scaricamento di:12 http://archive.raspberrypi.org/debian buster/main armhf libraspberrypi-bin armhf 1.20190718-1 [338 kB] Scaricamento di:13 http://archive.raspberrypi.org/debian buster/main armhf libraspberrypi-doc armhf 1.20190718-1 [31,4 MB] Scaricamento di:8 http://mirror.netcologne.de/raspbian/raspbian buster/main armhf libgs9-common all 9.27~dfsg-2+deb10u1 [5.136 kB] Scaricamento di:10 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf libjavascriptcoregtk-4.0-18 armhf 2.24.2-1+rpi1 [1.960 kB] Scaricamento di:11 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf patch armhf 2.7.6-3+deb10u1 [115 kB] Scaricamento di:14 http://archive.raspberrypi.org/debian buster/main armhf libraspberrypi-dev armhf 1.20190718-1 [408 kB] Scaricamento di:15 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-kernel armhf 1.20190718-1 [53,5 MB] Scaricamento di:16 http://archive.raspberrypi.org/debian buster/main armhf libraspberrypi0 armhf 1.20190718-1 [843 kB] Scaricamento di:17 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-bootloader armhf 1.20190718-1 [5.677 kB] Scaricamento di:18 http://archive.raspberrypi.org/debian buster/main armhf chromium-browser armhf 74.0.3729.157-rpt5 [89,6 MB] Scaricamento di:19 http://archive.raspberrypi.org/debian buster/main armhf chromium-codecs-ffmpeg-extra armhf 74.0.3729.157-rpt5 [1.652 kB] Scaricamento di:20 http://archive.raspberrypi.org/debian buster/main armhf arandr all 0.1.9-2+rpt6 [65,2 kB] Scaricamento di:21 http://archive.raspberrypi.org/debian buster/main armhf bluealsa armhf 0.11 [58,0 kB] Scaricamento di:22 http://archive.raspberrypi.org/debian buster/main armhf gldriver-test armhf 0.3 [3.396 B] Scaricamento di:23 http://archive.raspberrypi.org/debian buster/main armhf gstreamer1.0-plugins-good armhf 1.14.4-1+rpt1 [2.740 kB] Scaricamento di:24 http://archive.raspberrypi.org/debian buster/main armhf libfm-data all 1.3.1-1+rpt8 [244 kB] Scaricamento di:25 http://archive.raspberrypi.org/debian buster/main armhf libfm-extra4 armhf 1.3.1-1+rpt8 [30,7 kB] Scaricamento di:26 http://archive.raspberrypi.org/debian buster/main armhf libfm-gtk-data all 1.3.1-1+rpt8 [35,5 kB] Scaricamento di:27 http://archive.raspberrypi.org/debian buster/main armhf libfm-gtk4 armhf 1.3.1-1+rpt8 [136 kB] Scaricamento di:28 http://archive.raspberrypi.org/debian buster/main armhf libfm4 armhf 1.3.1-1+rpt8 [110 kB] Scaricamento di:29 http://archive.raspberrypi.org/debian buster/main armhf libfm-modules armhf 1.3.1-1+rpt8 [47,1 kB] Scaricamento di:30 http://archive.raspberrypi.org/debian buster/main armhf libvlccore9 armhf 3.0.7-1+rpt2 [474 kB] Scaricamento di:31 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-skins2 armhf 3.0.7-1+rpt2 [510 kB] Scaricamento di:32 http://archive.raspberrypi.org/debian buster/main armhf vlc armhf 3.0.7-1+rpt2 [139 kB] Scaricamento di:33 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-qt armhf 3.0.7-1+rpt2 [1.020 kB] Scaricamento di:34 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-video-output armhf 3.0.7-1+rpt2 [236 kB] Scaricamento di:35 http://archive.raspberrypi.org/debian buster/main armhf vlc-l10n all 3.0.7-1+rpt2 [5.850 kB] Scaricamento di:36 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-base armhf 3.0.7-1+rpt2 [2.544 kB] Scaricamento di:37 http://archive.raspberrypi.org/debian buster/main armhf vlc-data all 3.0.7-1+rpt2 [445 kB] Scaricamento di:38 http://archive.raspberrypi.org/debian buster/main armhf libvlc5 armhf 3.0.7-1+rpt2 [162 kB] Scaricamento di:39 http://archive.raspberrypi.org/debian buster/main armhf vlc-bin armhf 3.0.7-1+rpt2 [159 kB] Scaricamento di:40 http://archive.raspberrypi.org/debian buster/main armhf libvlc-bin armhf 3.0.7-1+rpt2 [122 kB] Scaricamento di:41 http://archive.raspberrypi.org/debian buster/main armhf lxpanel armhf 0.10.0-2+rpt6 [189 kB] Scaricamento di:42 http://archive.raspberrypi.org/debian buster/main armhf lxpanel-data all 0.10.0-2+rpt6 [1.066 kB] Scaricamento di:43 http://archive.raspberrypi.org/debian buster/main armhf lxterminal armhf 0.3.2-1+rpt2 [89,1 kB] Scaricamento di:44 http://archive.raspberrypi.org/debian buster/main armhf omxplayer armhf 20190723+gitf543a0d-1 [145 kB] Scaricamento di:45 http://archive.raspberrypi.org/debian buster/main armhf pcmanfm armhf 1.3.1-1+rpt8 [281 kB] Scaricamento di:46 http://archive.raspberrypi.org/debian buster/main armhf pipanel armhf 1:1.0 [22,1 kB] Scaricamento di:47 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-sys-mods armhf 20190730 [10,3 kB] Scaricamento di:48 http://archive.raspberrypi.org/debian buster/main armhf python-rpi.gpio armhf 0.7.0~buster-1 [23,6 kB] Scaricamento di:49 http://archive.raspberrypi.org/debian buster/main armhf python3-rpi.gpio armhf 0.7.0~buster-1 [23,7 kB] Scaricamento di:50 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-net-mods all 1.3.0 [3.784 B] Scaricamento di:51 http://archive.raspberrypi.org/debian buster/main armhf rc-gui armhf 1.29 [43,5 kB] Scaricamento di:52 http://archive.raspberrypi.org/debian buster/main armhf rp-prefapps armhf 0.9 [178 kB] Scaricamento di:53 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-notify armhf 3.0.7-1+rpt2 [123 kB] Scaricamento di:54 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-samba armhf 3.0.7-1+rpt2 [124 kB] Scaricamento di:55 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-video-splitter armhf 3.0.7-1+rpt2 [137 kB] Scaricamento di:56 http://archive.raspberrypi.org/debian buster/main armhf vlc-plugin-visualization armhf 3.0.7-1+rpt2 [139 kB] Scaricamento di:57 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-ui-mods all 1.20190717 [321 kB] Recuperati 222 MB in 4min 25s (838 kB/s) Lettura dei changelog... Fatto Estrazione dei template dai pacchetti: 100% dpkg: errore fatale non recuperabile, uscita: al file con l'elenco dei file del pacchetto "pypy" manca il newline finale E: Sub-process /usr/bin/dpkg returned an error code (2) pi@raspberrypi:/etc/apt $

Qualcuno può aiutarmi?

Grazie mille
Andrea
Risposta
#2
Salve,

sono riuscito ad andare avanti correggendo i file .list che sembravano corrotti.
Ho trovato una script in python che mi ha permesso di fare una correzione massiva.
Lo script è :

Codice:
#!/usr/bin/python # 8th November, 2009 # update manager failed, giving me the error: # 'files list file for package 'xxx' is missing final newline' for every package. # some Googling revealed that this problem was due to corrupt files(s) in /var/lib/dpkg/info/ # looping though those files revealed that some did not have a final new line # this script will resolve that problem by appending a newline to all files that are missing it # NOTE: you will need to run this script as root, e.g. sudo python newline_fixer.py import os dpkg_path = '/var/lib/dpkg/info/' paths = os.listdir(dpkg_path) for path in paths:        path = dpkg_path + path        f = open(path, 'a+')        data = f.read()        if len(data) > 1 and data[-1:] != '\n':                f.write('\n')                print 'added newline character to:', path        f.close()

Adesso l'errore che ottengo è:

Estrazione dei template dai pacchetti: 100%
dpkg: errore fatale non recuperabile, uscita:
il file con l'elenco dei file del pacchetto "python-configparser" contiene un nome file vuoto
E: Sub-process /usr/bin/dpkg returned an error code (2)
Risposta
  


Vai al forum:


Navigazione: 1 Ospite(i)
Forum con nuovi Post
Forum senza nuovi post
Forum bloccato
Forum Redirect