dpkg: error: unable to create new file '/var/lib/dpkg/info/format-new': No such file or directory

10,165

Run this command to check if a file named format-new exists in /var/lib/dpkg/info/ :

ls -l /var/lib/dpkg/info/format-new

If format-new does not exist, create a new file named format-new in the /var/lib/dpkg/info/ directory.

sudo touch /var/lib/dpkg/info/format-new  
sudo apt update  
sudo apt upgrade 
Share:
10,165
Enrique Bozza Dutra
Author by

Enrique Bozza Dutra

Updated on September 18, 2022

Comments

  • Enrique Bozza Dutra
    Enrique Bozza Dutra over 1 year

    When I try to sudo apt-get upgrade I get:

    Preconfiguring packages ...
    dpkg: error: unable to create new file '/var/lib/dpkg/info/format-new': No such file or directory
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    

    What should I do to fix it?

  • Enrique Bozza Dutra
    Enrique Bozza Dutra almost 6 years
    Thanks, it worked. But another problem showed up. I'll edit the question.