Results 1 to 2 of 2

Thread: Error apt-get upgrade

  1. #1
    Join Date
    2016-Nov
    Posts
    4

    Error apt-get upgrade

    Hello,

    I treid install openjdk-7-jre and openjdk-7-jdk but now i can't do apt-get upgrade / apt-get dist-upgrate...

    ex:

    root@kali:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    openjdk-7-jre : Depends: libpng12-0 (>= 1.2.13-4) but it is not installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    root@kali:~# apt --fix-broken install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    libicu55 libjson-c3 libllvm3.8 libmysqlclient18 libpoppler61
    libschroedinger-1.0-0 libxatracker2 lua-lpeg python-brotli
    python-ndg-httpsclient zlib1g-dev
    Use 'apt autoremove' to remove them.
    The following additional packages will be installed:
    libpng12-0
    The following NEW packages will be installed:
    libpng12-0
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    22 not fully installed or removed.
    Need to get 0 B/162 kB of archives.
    After this operation, 259 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 174231 files and directories currently installed.)
    Preparing to unpack .../libpng12-0_1.2.50-2+b2_armhf.deb ...
    Unpacking libpng12-0:armhf (1.2.50-2+b2) ...
    dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+b2_armhf.deb (--unpack):
    unable to install new version of '/lib/arm-linux-gnueabihf/libpng12.so.0': No such file or directory
    Errors were encountered while processing:
    /var/cache/apt/archives/libpng12-0_1.2.50-2+b2_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I try now apt-get remove libpng12-0 but i can't...

    Any help??

    I'm sorry for my english

  2. #2
    Join Date
    2016-Nov
    Posts
    4
    Quote Originally Posted by gamer06 View Post
    Hello,

    I treid install openjdk-7-jre and openjdk-7-jdk but now i can't do apt-get upgrade / apt-get dist-upgrate...

    ex:

    root@kali:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    You might want to run 'apt --fix-broken install' to correct these.
    The following packages have unmet dependencies:
    openjdk-7-jre : Depends: libpng12-0 (>= 1.2.13-4) but it is not installed
    E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


    root@kali:~# apt --fix-broken install
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Correcting dependencies... Done
    The following packages were automatically installed and are no longer required:
    libicu55 libjson-c3 libllvm3.8 libmysqlclient18 libpoppler61
    libschroedinger-1.0-0 libxatracker2 lua-lpeg python-brotli
    python-ndg-httpsclient zlib1g-dev
    Use 'apt autoremove' to remove them.
    The following additional packages will be installed:
    libpng12-0
    The following NEW packages will be installed:
    libpng12-0
    0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    22 not fully installed or removed.
    Need to get 0 B/162 kB of archives.
    After this operation, 259 kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    (Reading database ... 174231 files and directories currently installed.)
    Preparing to unpack .../libpng12-0_1.2.50-2+b2_armhf.deb ...
    Unpacking libpng12-0:armhf (1.2.50-2+b2) ...
    dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.50-2+b2_armhf.deb (--unpack):
    unable to install new version of '/lib/arm-linux-gnueabihf/libpng12.so.0': No such file or directory
    Errors were encountered while processing:
    /var/cache/apt/archives/libpng12-0_1.2.50-2+b2_armhf.deb
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    I try now apt-get remove libpng12-0 but i can't...

    Any help??

    I'm sorry for my english



    EDIT: I resolve the problem removing openjdk-7-jdk and openjdk-7-jre at the same time.

    Thanks!!!

Similar Threads

  1. Kali Update && Upgrade && dist-upgrade Error
    By Dickz in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2017-09-12, 07:11
  2. Replies: 3
    Last Post: 2016-10-15, 11:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •