我試圖讓一些程序包中安裝,運行命令: sudo apt-get upgrade
當運行sudo易於得到升級失敗,「libpam將運行時」缺少最後的換行符
,但它失敗: 'libpam-runtime' is missing final newline
我試了無數建議,我在網上找到,如: 1)重新安裝包: apt-get install libpam-runtime --reinstall
這確實沒什麼不同。
等
Full output looks like: sudo apt-get upgrade Reading package lists... Done Building dependency tree
Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bind9-host debconf debconf-i18n debconf-utils libbind9-90 libdns-export100 libdns100 libgcrypt20 libgnutls-deb0-28 libgnutls-openssl27 libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 liblwres90 libwbclient0 perl perl-base perl-modules samba-common 22 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/9,237 kB of archives. After this operation, 14.3 kB disk space will be freed. Do you want to continue? [Y/n] Y Reading changelogs... Done Preconfiguring packages ... dpkg: unrecoverable fatal error, aborting: files list file for package 'libpam-runtime' is missing final newline
更新錯誤 當我嘗試運行: 的purge
命令我: dpkg: unrecoverable fatal error, aborting: files list file for package 'libpam0g:armhf' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2)
但是,我還沒有找到一個解決方案,經過近3小時。
有沒有人有任何建議?
謝謝。
我曾試過這個,這沒有奏效。任何其他想法? *我完全損失* – John
您可以刪除(或保留備份)文件「/var/lib/dpkg/info/libpam-runtime.list」並嘗試再次重新安裝軟件包 –
至少給了我一個不同的錯誤。你能看到上面,並幫助嗎? – John