Friday, July 26, 2024

cannot update graphviz ubuntu n

sudo dpkg -s graphivz

dpkg-query: package 'graphivz' is not installed and no information is available

Use dpkg --info (= dpkg-deb --info) to examine archive files.



 sudo apt-get install graphviz

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Suggested packages:

  gsfonts graphviz-doc

The following packages will be upgraded:

  graphviz

1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Need to get 0 B/653 kB of archives.

After this operation, 0 B of additional disk space will be used.

debconf: apt-extracttemplates failed: No such file or directory

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

Errors were encountered while processing:

 /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)


udo apt-get install graphviz


 /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb 

 

 $ sudo apt-get remove /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb

Illegal instructionts... 0%


sudo rm -f /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb


sudo apt-get install graphviz

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Suggested packages:

  gsfonts graphviz-doc

The following packages will be upgraded:

  graphviz

1 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Need to get 653 kB of archives.

After this operation, 0 B of additional disk space will be used.

Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 graphviz amd64 2.42.2-6ubuntu0.1 [653 kB]

Fetched 653 kB in 3s (230 kB/s)   

debconf: apt-extracttemplates failed: No such file or directory

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

Errors were encountered while processing:

 /var/cache/apt/archives/graphviz_2.42.2-6ubuntu0.1_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)