Linux update problem

Discussion in 'Server Operation' started by asgare, Oct 11, 2020.

  1. asgare

    asgare Member

    Hi
    After several years of installing Ispconfig and Linux now getting new error but couldn't know how to handle it.

    here is my source list:
    Code:
    # deb cdrom:[Debian GNU/Linux 10.5.0 _Buster_ - Official amd64 DVD Binary-1 20200801-11:35]/ buster contrib main
    #deb cdrom:[Debian GNU/Linux 10.5.0 _Buster_ - Official amd64 DVD Binary-1 20200801-11:35]/ buster contrib main
    deb http://ftp.de.debian.org/debian/ buster main non-free contrib
    deb-src http://ftp.de.debian.org/debian/ buster main non-free contrib
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
    # buster-updates, previously known as 'volatile'
    deb http://ftp.de.debian.org/debian/ buster-updates main contrib non-free
    deb-src http://ftp.de.debian.org/debian/ buster-updates main contrib non-free
    deb http://deb.debian.org/debian/ buster main contrib non-free
    deb-src http://deb.debian.org/debian/ buster main contrib non-free
    deb http://security.debian.org/debian-security buster/updates main contrib non-free
    deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
    deb http://ftp.cz.debian.org/debian/ buster-updates main contrib
    deb-src http://ftp.cz.debian.org/debian/ buster-updates main contrib
    deb http://ftp.tr.debian.org/debian/ buster-updates main contrib
    deb-src http://ftp.tr.debian.org/debian/ buster-updates main contrib
    deb http://ftp.at.debian.org/debian/ jessie main contrib non-free
    deb-src http://ftp.at.debian.org/debian/ jessie main contrib non-free
    deb http://ftp.us.debian.org/debian/ buster main
    deb-src http://ftp.us.debian.org/debian/ buster main
    deb http://security.debian.org/debian-security buster/updates main contrib
    deb-src http://security.debian.org/debian-security buster/updates main contrib
    # buster-updates, previously known as 'volatile'
    deb http://ftp.us.debian.org/debian/ buster-updates main contrib
    

    Since I live in Iran, I set in a way that the nearest location fetches updates. Always this method worked for me but now even my new and old server is not working.


    here are the update command results:
    Code:
    root@ns1:~# apt-get update
    
    Err:1 http://security.debian.org/debian-security buster/updates InRelease
      Temporary failure resolving 'security.debian.org'
    Err:2 http://ftp.us.debian.org/debian buster InRelease
      Temporary failure resolving 'ftp.us.debian.org'
    Err:3 http://deb.debian.org/debian buster InRelease
      Temporary failure resolving 'deb.debian.org'
    Err:4 http://ftp.tr.debian.org/debian buster-updates InRelease
      Temporary failure resolving 'ftp.tr.debian.org'
    Err:5 http://ftp.de.debian.org/debian buster InRelease
      Temporary failure resolving 'ftp.de.debian.org'
    Err:6 http://ftp.cz.debian.org/debian buster-updates InRelease
      Temporary failure resolving 'ftp.cz.debian.org'
    Err:7 http://ftp.at.debian.org/debian jessie InRelease
      Temporary failure resolving 'ftp.at.debian.org'
    Err:8 http://ftp.us.debian.org/debian buster-updates InRelease
      Temporary failure resolving 'ftp.us.debian.org'
    Err:9 http://ftp.de.debian.org/debian buster-updates InRelease
      Temporary failure resolving 'ftp.de.debian.org'
    Reading package lists... Done
    W: Failed to fetch http://ftp.de.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'ftp.de.debian.org'
    W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease  Temporary failure resolving 'security.debian.org'
    W: Failed to fetch http://ftp.de.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'ftp.de.debian.org'
    W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'deb.debian.org'
    W: Failed to fetch http://ftp.cz.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'ftp.cz.debian.org'
    W: Failed to fetch http://ftp.tr.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'ftp.tr.debian.org'
    W: Failed to fetch http://ftp.at.debian.org/debian/dists/jessie/InRelease  Temporary failure resolving 'ftp.at.debian.org'
    W: Failed to fetch http://ftp.us.debian.org/debian/dists/buster/InRelease  Temporary failure resolving 'ftp.us.debian.org'
    W: Failed to fetch http://ftp.us.debian.org/debian/dists/buster-updates/InRelease  Temporary failure resolving 'ftp.us.debian.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:19
    W: Target Sources (contrib/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:19
    W: Target Sources (non-free/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:19
    W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:34
    W: Target Sources (contrib/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:34
    W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:18
    W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:33
    
    Also, I change the domain name to IP address via ping command but also that wasn't worked for me.
    Almost for about two weeks, I got stuck in this situation and need urgent help. Please let me know if anyone experienced this situation.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Looks like name resolution is not working. Is this same error been going on for two weeks?
    I do not understand what the above means. What did you actually do?
    What show commands
    Code:
    host security.debian.org
    host www.google.com
    ping -c 3 8.8.8.8
    My signature has link to DNS tutorial, it has info on troubleshooting name service.
    If still problems, what show
    Code:
    cat /etc/resolv.conf
    
    cat /etc/nsswitch.conf
     
  3. asgare

    asgare Member

    Hi Taleman
    Thanks for your help
    here is the result of requested commands:

    Code:
    root@ns1:~# host www.google.com
    ;; connection timed out; no servers could be reached
    
    Code:
    root@ns1:~# ping -c 3 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    From 192.168.1.191 icmp_seq=1 Destination Host Unreachable
    From 192.168.1.191 icmp_seq=2 Destination Host Unreachable
    From 192.168.1.191 icmp_seq=3 Destination Host Unreachable
    
    --- 8.8.8.8 ping statistics ---
    3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 29ms
    pipe 2
    
    

    command: nano /etc/resolv.conf
    Code:
    nameserver 8.8.8.8
    nameserver 1.1.1.1
    nameserver 9.9.9.9
    nameserver 89.165.0.13
    nameserver 46.224.1.42
    domain domain.name
    search domain.name
    
    command: nano /etc/nsswitch.conf
    Code:
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         files systemd
    group:          files systemd
    shadow:         files
    gshadow:        files
    
    hosts:          files dns
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Ping command shows that host can not reach the Internet. Examine why this is the case, fixing the connection should resolve your problems. Name service can not work if the host can not access Internet to send the name service queries.
    Commands to examine the situation:
    Code:
    cat /etc/debian_version
    ip a
    ip r
    
    In the ip r output, take the default via <ip-number>
    and ping that number to see if host can reach default router.
    If the ip a and ip r do not show usefull output, maybe the host has lost it's network configuration? Or the cable is unplugged?
     
  5. asgare

    asgare Member

    I had a problem with my DNS and static IP and I resolved recently.
    But got new error and post as a new threat in ISPConfig forum.
     

Share This Page