Can't update ubuntu 16.04

Discussion in 'Server Operation' started by Jus Kondic, Sep 24, 2018.

  1. Jus Kondic

    Jus Kondic New Member

    Hi guys!
    I'm searching long time for solution, so I've decide to post it.
    When I try to update the sistem with command [apt-get update], i get as resoult this:
    Code:
    [email protected]:/home/jus# apt-get update
    Hit:1 http://si.archive.ubuntu.com/ubuntu xenial InRelease
    Hit:2 http://si.archive.ubuntu.com/ubuntu xenial-updates InRelease
    Hit:3 http://si.archive.ubuntu.com/ubuntu xenial-backports InRelease
    Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
    Get:5 http://dl.hhvm.com/ubuntu xenial InRelease [2,411 B]
    Get:6 https://dl.hhvm.com/ubuntu xenial InRelease [2,411 B]
    Get:7 https://dl.hhvm.com/ubuntu xenial/main amd64 Packages [2,246 B]
    Ign:8 http://dl.hhvm.com/ubuntu xenial/main amd64 Packages
    Get:8 http://dl.hhvm.com/ubuntu xenial/main amd64 Packages [6,637 B]
    Fetched 13.7 kB in 0s (18.7 kB/s)
    Reading package lists... Done
    N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.hhvm.com/ubuntu xenial InRelease' doesn't support architecture 'i386'
    N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://dl.hhvm.com/ubuntu xenial InRelease' doesn't support architecture 'i386'
    E: Failed to stat /var/lib/apt/lists/partial/dl.hhvm.com_ubuntu_dists_xenial_InRelease - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
    E: Failed to stat /var/lib/apt/lists/partial/dl.hhvm.com_ubuntu_dists_xenial_main_binary-amd64_Packages - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
    W: Duplicate sources.list entry https://dl.hhvm.com/ubuntu xenial Release
    [email protected]:/home/jus#
    
    What should I do?
    Thank you in advance!
    Jus
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you mixed arkhitectures, i.e. both 32 and 64 bit? What does
    Code:
    Dpkg --print-architecture
    show?
    What is in sources.list file and in /etc/apt/sources.list.d/ directory?
     
  3. >> what is the output of uname -a ?
     
  4. Jus Kondic

    Jus Kondic New Member

    It showes:
    Code:
    [email protected]:/home/jus# dpkg --print-architecture
    amd64
    [email protected]:/home/jus#
    
     
  5. Jus Kondic

    Jus Kondic New Member

    It is
    Code:
    [email protected]:/etc/apt/sources.list.d# uname -a
    Linux mars 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    [email protected]:/etc/apt/sources.list.d#
    
     
  6. Jus Kondic

    Jus Kondic New Member

    anyone??
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I asked in #3:
    And do show the contents of files, not just directory listing.
    My guess is you have done something to those files, added some repositories perhaps, and you should now remove the repositories that do not work. That hhvm repository may be no longer available or not offering 32-bit versions.
     
  8. Jus Kondic

    Jus Kondic New Member

  9. ahrasis

    ahrasis Well-Known Member

    Try adding [arch=amd64] after deb for hhvm?
     
  10. Jus Kondic

    Jus Kondic New Member

    Still don't work. Any other idea?
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Comment out the hhvm lines in sources.list. Then apt-get update should stop showing error.
     

Share This Page