LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dpkg problem can't update (https://www.linuxquestions.org/questions/linux-software-2/dpkg-problem-cant-update-4175671374/)

Pedroski 03-15-2020 06:11 AM

dpkg problem can't update
 
I use Ubuntu 18.04 on this old Toshiba laptop

Today I got this error:

Quote:

pedro@zhu-baby:~$ sudo apt upgrade
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
So I did this:

Quote:

pedro@zhu-baby:~$ sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0001' near line 0:
newline in field name '#padding'
and get an error.

Now I can't update.

Please, what should I do? I've never had this error before.

pan64 03-15-2020 06:24 AM

probably I would try to remove that file and start over again (save it somewhere - maybe you need to restore it). Probably an apt clean helps.

villaroel 03-15-2020 08:23 AM

try again
 
remove the folder and try again, this usually happens, but it is not a serious problem

Pedroski 03-15-2020 05:13 PM

Thanks, this:

Quote:

sudo rm /var/lib/dpkg/updates/0001
fixed it!


All times are GMT -5. The time now is 03:13 AM.