Results 1 to 3 of 3

Thread: apt-get not working on new VirtualBox appliance import

  1. #1
    Join Date
    2020-Jul
    Posts
    2

    apt-get not working on new VirtualBox appliance import

    steps:
    • downloaded virtualbox .ova file of Kali x64, 2020.2a and verified hash
    • import as virtualbox appliance and start
    • sudo apt-get update fails with:

    E: Failed to fetch http://mirrors.ocf.berkeley.edu/kali...64/Packages.gz Hash Sum mismatch
    Hashes of expected file:
    - Filesize:16657172 [weak]
    - SHA256:39517d0666b1431342676f93dd481448ed27d6f50fa0a69a06 568be98a4492d2
    - SHA1:11992919cc5878e6ab023c6a89abc4ced49e69ca [weak]
    - MD5Sum:3bad68e39c1647cc1366dbfd425c3d9b [weak]
    Hashes of received file:
    - SHA256:60af05f09ae13d782516496e1a0543d840dfc714d80 e8cfba2d3ed4e09f0f771


    I manually changed to some of the repos listed in http://http.kali.org/README.mirrorlist
    I tried other mirrors in US and Europe - each time same expected hash but different actual hash reported by apt

    I downloaded one of the files and checked the hash, and it is what it is expected to be:

    sha256sum -b ~/Downloads/Packages.gz
    39517d0666b1431342676f93dd481448ed27d6f50fa0a69a06 568be98a4492d2 */home/kali/Downloads/Packages.gz


    so it looks like apt is corrupting the file or incorrectly calculating hash?
    I deleted and recreated the VM from the ova file, but same result.
    Anyone know a fix?

  2. #2
    Join Date
    2020-Jul
    Posts
    8
    I suggest you to use the default repos.
    I know that they are too slow but it may works.
    Have you tried all the repos if not please try them all.
    Hope this helps.

  3. #3
    Join Date
    2015-Aug
    Location
    Micjigan
    Posts
    13
    use apt update && apt upgrade -y

Similar Threads

  1. Cannot import Kali key
    By jasondbecker in forum Installing Archive
    Replies: 2
    Last Post: 2016-08-29, 17:58
  2. DNS not working through VirtualBox NAT
    By chercloud7 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2014-10-22, 21:16

Posting Permissions

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