Results 1 to 6 of 6

Thread: Apt-get upgrade fails

  1. #1
    Join Date
    2017-Jan
    Posts
    7

    Apt-get upgrade fails

    The same apt-get upgrade error appears on my 2019.1 and even fresh installation of 2019.2. I am running Kali Linux on vmware
    " File has unexpected size (122092 != 1645028). Mirror sync in progress?"

    Fresh installation of Kali 2019.2

    root@kali:/etc/apt# grep VERSION /etc/os-release
    VERSION="2019.2"
    VERSION_ID="2019.2"
    root@kali:/etc/apt#
    root@kali:/etc/apt# uname -a
    Linux kali 4.19.0-kali4-amd64 #1 SMP Debian 4.19.28-2kali1 (2019-03-18) x86_64 GNU/Linux

    Unmodified sources.list


    # deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-free
    #deb cdrom:[Debian GNU/Linux 2019.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20190508-08:43]/ kali-last-snapshot contrib main non-free
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    # deb-src http://http.kali.org/kali kali-rolling main non-free contrib
    # This system was installed using small removable media
    # (e.g. netinst, live or single CD). The matching "deb cdrom"
    # entries were disabled at the end of the installation process.
    # For information about how to configure apt package sources,
    # see the sources.list(5) manual.

    Apt-get update works
    but, Apt-get upgrade produces error.


    root@kali:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
    desktop-base linux-headers-amd64 linux-image-amd64
    The following packages will be upgraded:
    apt apt-utils atftpd automater bed beef-xss bind9-host curl dbus
    dbus-user-session dbus-x11 dnsutils dradis exim4-base exim4-config
    exim4-daemon-light exploitdb firefox-esr fonts-wine ghostscript
    gir1.2-gnomedesktop-3.0 gir1.2-gst-plugins-base-1.0
    gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gnome-desktop3-data
    gstreamer1.0-gl gstreamer1.0-plugins-base gstreamer1.0-x gvfs gvfs-backends
    gvfs-common gvfs-daemons gvfs-fuse gvfs-libs imagemagick
    imagemagick-6-common imagemagick-6.q16 intel-microcode john john-data
    kali-defaults kali-menu libapt-inst2.0 libapt-pkg5.0 libavcodec58
    libavfilter7 libavformat58 libavresample4 libavutil56 libbind9-161 libc-bin
    libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libc6-i386 libcurl3-gnutls
    libcurl4 libdbus-1-3 libdns-export1104 libdns1104 libdw1 libegl-mesa0
    libelf1 libfaad2 libgbm1 libgl1-mesa-dri libglapi-mesa libglib2.0-0
    libglib2.0-bin libglib2.0-data libglx-mesa0 libgnome-desktop-3-17
    libgnutls-dane0 libgnutls30 libgs9 libgs9-common libgstreamer-gl1.0-0
    libgstreamer-plugins-base1.0-0 libheif1 libijs-0.35 libirs161
    libisc-export1100 libisc1100 libisccc161 libisccfg163
    libjavascriptcoregtk-4.0-18 liblwres161 libmagickcore-6.q16-6
    libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libmariadb3
    libnautilus-extension1a libnss-myhostname libnss-systemd libosmesa6
    libpam-systemd libpng16-16 libpoppler-glib8 libpoppler82 libpostproc55
    libpq5 libpython3-dev libpython3-stdlib libpython3.7 libpython3.7-dev
    libpython3.7-minimal libpython3.7-stdlib libruby2.5 libsmbclient libssh-4
    libssh-gcrypt-4 libswresample3 libswscale5 libsystemd0 libudev1 libutf8proc2
    libwavpack1 libwbclient0 libwebkit2gtk-4.0-37 libwine libwireshark-data
    libwireshark11 libwiretap8 libwscodecs2 libwsutil9 libwww-perl libxatracker2
    linux-compiler-gcc-8-x86 linux-kbuild-4.19 linux-libc-dev locales
    locales-all lsb-base lsb-release maltego manpages manpages-dev
    mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common
    mariadb-server-10.3 mariadb-server-core-10.3 mercurial mercurial-common
    mesa-va-drivers mesa-vdpau-drivers metasploit-framework nautilus
    nautilus-data poppler-utils postgresql-11 postgresql-client-11 python-django
    python-django-common python-samba python3 python3-dev python3-distutils
    python3-lib2to3 python3-minimal python3-tk python3.7 python3.7-dev
    python3.7-minimal qtchooser ruby2.5 ruby2.5-dev ruby2.5-doc samba
    samba-common samba-common-bin samba-dsdb-modules samba-libs
    samba-vfs-modules smbclient sqlmap systemd systemd-sysv t50 tasksel
    tasksel-data tshark udev unattended-upgrades unzip usb.ids vim vim-common
    vim-gtk vim-gui-common vim-runtime vim-tiny wafw00f wifitap windows-binaries
    wine wine64 winexe wireshark wireshark-common wireshark-qt wpasupplicant
    xserver-common xserver-xephyr xserver-xorg-core xserver-xorg-legacy
    xserver-xorg-video-ati xserver-xorg-video-radeon xwayland xxd
    212 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Need to get 709 MB of archives.
    After this operation, 54.5 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://mirror.aktkn.sg/kali kali-rolling/main amd64 libc6-dbg amd64 2.28-10 [11.5 MB]
    Get:2 http://mirror.aktkn.sg/kali kali-rolling/main amd64 libc6-i386 amd64 2.28-10 [2,872 kB]
    Get:3 http://http.kali.org/kali kali-rolling/main amd64 libc6-dev amd64 2.28-10 [2,691 kB]
    Err:3 http://http.kali.org/kali kali-rolling/main amd64 libc6-dev amd64 2.28-10
    File has unexpected size (207016 != 2691204). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:43915a1d28e04039097f97c833b697b8d1703c7da92 89fba7eb1834ba6fa23b0
    - SHA1:5bc455a89702e4d0fccd7b9a4b97c28604cbd3e0 [weak]
    - MD5Sum:12da3762b614aa2cf983ad3e64d4a18f [weak]
    - Filesize:2691204 [weak]
    Get:4 http://http.kali.org/kali kali-rolling/main amd64 libc-dev-bin amd64 2.28-10 [275 kB]
    Err:4 http://http.kali.org/kali kali-rolling/main amd64 libc-dev-bin amd64 2.28-10
    File has unexpected size (207016 != 275456). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:8ee8daa87132e1f2eb6a82370dd01565cf9d3b299b9 6d3054711f144dd8f174a
    - SHA1:1e67ef85ab21af2f366c2b3cacc2fb155e9689fa [weak]
    - MD5Sum:5df647567d1fcfda8dace515efe67320 [weak]
    - Filesize:275456 [weak]
    Get:5 http://http.kali.org/kali kali-rolling/main amd64 linux-libc-dev amd64 4.19.37-2kali1 [1,645 kB]
    Err:5 http://http.kali.org/kali kali-rolling/main amd64 linux-libc-dev amd64 4.19.37-2kali1
    File has unexpected size (122092 != 1645028). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:cef471b8d830ca99a818bf3743f56afb4f59991f628 ef28b3c8ae0b5c6f55907
    - SHA1:8259d27ae83cb90c15683cfbf5b6ec2525762ef0 [weak]
    - MD5Sum:e3f20f6dbf77b0718e6564d86a54a085 [weak]
    - Filesize:1645028 [weak]

    And the error continues...................

    I modified sources.list and enabled both links but i still encounter error
    deb http://http.kali.org/kali kali-rolling main non-free contrib
    deb-src http://http.kali.org/kali kali-rolling main non-free contrib


    root@kali:/etc/apt# apt-get upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    The following packages have been kept back:
    desktop-base linux-headers-amd64 linux-image-amd64
    The following packages will be upgraded:
    apt apt-utils atftpd automater bed beef-xss bind9-host curl dbus
    dbus-user-session dbus-x11 dnsutils dradis exim4-base exim4-config
    exim4-daemon-light exploitdb firefox-esr fonts-wine ghostscript
    gir1.2-gnomedesktop-3.0 gir1.2-gst-plugins-base-1.0
    gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gnome-desktop3-data
    gstreamer1.0-gl gstreamer1.0-plugins-base gstreamer1.0-x gvfs gvfs-backends
    gvfs-common gvfs-daemons gvfs-fuse gvfs-libs imagemagick
    imagemagick-6-common imagemagick-6.q16 intel-microcode john john-data
    kali-defaults kali-menu libapt-inst2.0 libapt-pkg5.0 libavcodec58
    libavfilter7 libavformat58 libavresample4 libavutil56 libbind9-161 libc-bin
    libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libc6-i386 libcurl3-gnutls
    libcurl4 libdbus-1-3 libdns-export1104 libdns1104 libdw1 libegl-mesa0
    libelf1 libfaad2 libgbm1 libgl1-mesa-dri libglapi-mesa libglib2.0-0
    libglib2.0-bin libglib2.0-data libglx-mesa0 libgnome-desktop-3-17
    libgnutls-dane0 libgnutls30 libgs9 libgs9-common libgstreamer-gl1.0-0
    libgstreamer-plugins-base1.0-0 libheif1 libijs-0.35 libirs161
    libisc-export1100 libisc1100 libisccc161 libisccfg163
    libjavascriptcoregtk-4.0-18 liblwres161 libmagickcore-6.q16-6
    libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libmariadb3
    libnautilus-extension1a libnss-myhostname libnss-systemd libosmesa6
    libpam-systemd libpng16-16 libpoppler-glib8 libpoppler82 libpostproc55
    libpq5 libpython3-dev libpython3-stdlib libpython3.7 libpython3.7-dev
    libpython3.7-minimal libpython3.7-stdlib libruby2.5 libsmbclient libssh-4
    libssh-gcrypt-4 libswresample3 libswscale5 libsystemd0 libudev1 libutf8proc2
    libwavpack1 libwbclient0 libwebkit2gtk-4.0-37 libwine libwireshark-data
    libwireshark11 libwiretap8 libwscodecs2 libwsutil9 libwww-perl libxatracker2
    linux-compiler-gcc-8-x86 linux-kbuild-4.19 linux-libc-dev locales
    locales-all lsb-base lsb-release maltego manpages manpages-dev
    mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common
    mariadb-server-10.3 mariadb-server-core-10.3 mercurial mercurial-common
    mesa-va-drivers mesa-vdpau-drivers metasploit-framework nautilus
    nautilus-data poppler-utils postgresql-11 postgresql-client-11 python-django
    python-django-common python-samba python3 python3-dev python3-distutils
    python3-lib2to3 python3-minimal python3-tk python3.7 python3.7-dev
    python3.7-minimal qtchooser ruby2.5 ruby2.5-dev ruby2.5-doc samba
    samba-common samba-common-bin samba-dsdb-modules samba-libs
    samba-vfs-modules smbclient sqlmap systemd systemd-sysv t50 tasksel
    tasksel-data tshark udev unattended-upgrades unzip usb.ids vim vim-common
    vim-gtk vim-gui-common vim-runtime vim-tiny wafw00f wifitap windows-binaries
    wine wine64 winexe wireshark wireshark-common wireshark-qt wpasupplicant
    xserver-common xserver-xephyr xserver-xorg-core xserver-xorg-legacy
    xserver-xorg-video-ati xserver-xorg-video-radeon xwayland xxd
    212 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    Need to get 680 MB/709 MB of archives.
    After this operation, 54.5 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Get:1 http://mirror.aktkn.sg/kali kali-rolling/main amd64 linux-libc-dev amd64 4.19.37-2kali1 [1,645 kB]
    Get:2 http://mirror.aktkn.sg/kali kali-rolling/main amd64 libc6 amd64 2.28-10 [2,867 kB]
    Get:3 http://http.kali.org/kali kali-rolling/main amd64 libnss-systemd amd64 241-5 [203 kB]
    Err:3 http://http.kali.org/kali kali-rolling/main amd64 libnss-systemd amd64 241-5
    File has unexpected size (1274628 != 203088). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:50cdca7f54bf33b1bf0abc6d7e354a3d460c840b267 1d33788fef04918ea458e
    - SHA1:c787ff4800b225c34723e283d23176bc81c8f8b2 [weak]
    - MD5Sum:4852f6fa341dcb0eed5eb185191cf0a0 [weak]
    - Filesize:203088 [weak]
    Get:4 http://http.kali.org/kali kali-rolling/main amd64 xserver-common all 2:1.20.4-1 [2,235 kB]
    Err:4 http://http.kali.org/kali kali-rolling/main amd64 xserver-common all 2:1.20.4-1
    File has unexpected size (148796 != 2234584). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:43cae5be27eed5d63f85a7c9be957f993512013157c 435095f48f593eb891f9f
    - SHA1:195ad54dc8129662e41fef45d07b8c4440ba3a40 [weak]
    - MD5Sum:6c401be7d0b09c9598ed4674328b81f3 [weak]
    - Filesize:2234584 [weak]
    Get:5 http://http.kali.org/kali kali-rolling/main amd64 xserver-xorg-legacy amd64 2:1.20.4-1 [2,240 kB]
    Err:5 http://http.kali.org/kali kali-rolling/main amd64 xserver-xorg-legacy amd64 2:1.20.4-1
    File has unexpected size (98212 != 2240176). Mirror sync in progress? [IP: 118.189.200.147 80]
    Hashes of expected file:
    - SHA256:b403d6f0140efeda6ef57850899fd32ae80e9ef34a6 004f6ca0670303b597c7e
    - SHA1:3fd063231ba28d0dcaa028ff5bc1b8b5f76c903a [weak]
    - MD5Sum:1d1b8c99b55c8e3f95303b345ee7f86b [weak]
    - Filesize:2240176 [weak]

    The error continues...........

    Please help

  2. #2
    Join Date
    2019-Jun
    Posts
    1
    Hello buddy,
    You can change your current list to mirror list::
    I see you stilll using 'http://http.kali.org/kali kali-rolling/main' , You can use mirror list for better connectivity.. & try some cmd

    apt clean
    apt update
    apt upgrade or apt upgrade

  3. #3
    Join Date
    2016-Dec
    Posts
    613
    Try running apt-get update first

  4. #4
    Join Date
    2017-Jan
    Posts
    7
    apt-get update works fine.

    root@kali:~# apt-get update
    Hit:1 http://mirror.aktkn.sg/kali kali-rolling InRelease
    Reading package lists... Done

    After which, apt-get upgrade fails as shown in information provided earlier

  5. #5
    Join Date
    2017-Jan
    Posts
    7
    I think i found the problem

    Although my "sources.list" only included >> deb http://http.kali.org/kali kali-rolling main non-free contrib >> The "apt-get" process was redirected to other other sites and my home-PC AV (AVG Internet Security) blocked it in real-time.
    15/6/2019 11:00:46 PM http://mirror.aktkn.sg/kali/pool/main/s/sbd/sbd_1.37-1kali3_amd64.deb|>data.tar.xz|>data.tar|>.\usr\sha re\windows-resources\sbd\sbd.exe [L] Win32:Malware-gen (0)
    15/6/2019 11:00:47 PM http://mirror.aktkn.sg/kali/pool/main/w/webshells/webshells_1.1%2bkali3_all.deb|>data.tar.xz|>data.t ar|>.\usr\share\webshells\asp\cmd-asp-5.1.asp [L] ASP:Ace-W (0)
    15/6/2019 11:01:03 PM http://mirror.aktkn.sg/kali/pool/non-free/w/windows-binaries/windows-binaries_0.6.5_all.deb|>data.tar.xz|>data.tar|>.\u sr\share\windows-resources\binaries\enumplus\enum.exe [L] Win32:Adware-gen [Adw] (0)
    15/6/2019 11:10:14 PM http://mirror.aktkn.sg/kali/pool/main/s/sbd/sbd_1.37-1kali3_amd64.deb|>data.tar.xz|>data.tar|>.\usr\sha re\windows-resources\sbd\sbd.exe [L] Win32:Malware-gen (0)

    I confirmed by turning off my AV and "apt-get upgrade" completed without error.

  6. #6
    Join Date
    2016-Dec
    Posts
    613
    Thanks for the update

Similar Threads

  1. apt-get -y upgrade fails apt-get -y dist-upgrade fails
    By billp11 in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2016-11-04, 03:42
  2. W3AF fails to load after update/upgrade
    By HackR2D2 in forum Installing Archive
    Replies: 5
    Last Post: 2014-11-10, 04:14
  3. GRUB2 Upgrade Fails
    By dba4life in forum Installing Archive
    Replies: 0
    Last Post: 2014-04-20, 23:23
  4. apt-get dist-upgrade fails
    By nix in forum Installing Archive
    Replies: 6
    Last Post: 2014-03-23, 10:51

Posting Permissions

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