Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: No internet connection when setting up Ubuntu 12.04

  1. #1
    Join Date
    Feb 2012
    Beans
    15

    Question No internet connection when setting up Ubuntu 12.04

    Hello @all!

    Currently Windows 7 is running on my PC.
    When i boot to Windows -> connected to the internet.

    Now when i try to install Ubuntu 12.04 and boot from the installation CD -> "Disconnected - You are now offline".

    There is a LAN cable connected directly from my router to my PC.
    No WLAN used.

    Anyone an idea how to fix that very annoying problem?

  2. #2
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,489
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: No internet connection when setting up Ubuntu 12.04

    Please show the terminal (CTRL+ALT+T) outputs of these commands:
    Code:
    uname -a
    lspci -nnk | grep -iA2 net
    cat /etc/network/interfaces
    cat /etc/resolv.conf
    lsmod
    Is it a router or a modem?

  3. #3
    Join Date
    Feb 2012
    Beans
    15

    Re: No internet connection when setting up Ubuntu 12.04

    Ok, here you go:

    Code:
    ubuntu@ubuntu:~$ uname -a
    Linux ubuntu 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    ubuntu@ubuntu:~$
    Code:
    ubuntu@ubuntu:~$ lspci -nnk | grep -iA2 net
    03:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR8161 Gigabit Ethernet [1969:1091] (rev 08)
        Subsystem: Hewlett-Packard Company Device [103c:2ad5]
    ubuntu@ubuntu:~$ 
    Code:
    ubuntu@ubuntu:~$ cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    
    ubuntu@ubuntu:~$ 
    Code:
    ubuntu@ubuntu:~$ cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    ubuntu@ubuntu:~$ 
    Code:
    ubuntu@ubuntu:~$ lsmod
    Module                  Size  Used by
    ufs                    75309  0 
    qnx4                   13432  0 
    hfsplus                89053  0 
    hfs                    54783  0 
    minix                  36416  0 
    ntfs                  101959  0 
    msdos                  17333  0 
    xfs                   852661  0 
    reiserfs              249170  0 
    jfs                   186683  0 
    ext2                   73799  0 
    dm_crypt               23126  0 
    snd_hda_codec_hdmi     32476  1 
    snd_hda_codec_idt      70774  1 
    snd_hda_intel          34117  5 
    snd_hda_codec         135141  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
    snd_hwdep              17765  1 snd_hda_codec
    snd_pcm                97523  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13325  0 
    snd_rawmidi            30750  1 snd_seq_midi
    coretemp               13642  0 
    snd_seq_midi_event     14900  1 snd_seq_midi
    snd_seq                61931  2 snd_seq_midi,snd_seq_midi_event
    kvm                   422160  0 
    snd_timer              29990  2 snd_pcm,snd_seq
    snd_seq_device         14498  3 snd_seq_midi,snd_rawmidi,snd_seq
    psmouse               102075  0 
    dm_multipath           23306  0 
    snd                    83674  20 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    parport_pc             32867  0 
    joydev                 17694  0 
    ppdev                  17114  0 
    rfcomm                 47562  0 
    bnep                   18240  2 
    serio_raw              13216  0 
    mac_hid                13254  0 
    scsi_dh                14589  1 dm_multipath
    lpc_ich                17145  0 
    ghash_clmulni_intel    13221  0 
    lp                     17800  0 
    aesni_intel            51134  0 
    cryptd                 20531  2 ghash_clmulni_intel,aesni_intel
    mei                    41410  0 
    soundcore              15092  1 snd
    aes_x86_64             17256  1 aesni_intel
    snd_page_alloc         18573  2 snd_hda_intel,snd_pcm
    bluetooth             211812  10 rfcomm,bnep
    parport                46563  3 parport_pc,ppdev,lp
    microcode              23030  0 
    squashfs               36801  1 
    overlayfs              28353  1 
    nls_utf8               12558  1 
    isofs                  40307  1 
    dm_raid45              78156  0 
    xor                    17153  1 dm_raid45
    dm_mirror              22204  0 
    dm_region_hash         20962  1 dm_mirror
    dm_log                 18565  3 dm_raid45,dm_mirror,dm_region_hash
    btrfs                 781017  0 
    zlib_deflate           27140  1 btrfs
    libcrc32c              12645  1 btrfs
    hid_generic            12541  0 
    usbhid                 47259  0 
    hid                   100815  2 hid_generic,usbhid
    uas                    18073  0 
    usb_storage            49288  0 
    radeon                912794  3 
    ttm                    88495  1 radeon
    drm_kms_helper         49259  1 radeon
    drm                   290344  5 radeon,ttm,drm_kms_helper
    video                  19598  0 
    i2c_algo_bit           13565  1 radeon
    ubuntu@ubuntu:~$ 

    Well, it's a WLAN-router.

  4. #4
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,489
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: No internet connection when setting up Ubuntu 12.04

    Actually, the driver for this device is not yet part of the kernel. You need to compile it on your own.

    Lets check the packages installed we need for that:
    Code:
    dpkg -l linux-headers-$(uname -r)
    dpkg -l build-essential
    dpkg -l dkms

  5. #5
    Join Date
    Feb 2012
    Beans
    15

    Re: No internet connection when setting up Ubuntu 12.04

    As i said earlier, I haven't installed Ubuntu so far.
    Should I first set up Ubuntu (even without internet connection) and then
    check the packages installed we need?

    I already checked them anyway, it says that this 3 packages can't be found.

  6. #6
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,489
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: No internet connection when setting up Ubuntu 12.04

    No problem. Install them in the Live-system via

    Code:
    sudo apt-get install build-essential dkms linux-headers-$(uname -r) linux-headers-generic
    Then copy all ".deb" files from the live system's folder /var/cache/apt/archives to a stick. After the OS installation to the hard drive copy them to "Downloads" (Edit: of the installed system) and install them via
    Code:
    sudo dpkg -i ~/Downloads/*.deb
    Download the file

    http://media.cdn.ubuntu-de.org/forum...0121003.tar.gz
    and save it in "Downloads",too. Installation via
    Code:
    cd Downloads/
    sudo tar xvf 4987097-alx_dkms-cw20121003.tar.gz -C /usr/src
    sudo dkms add alx_dkms -v cw20121003
    sudo dkms build alx_dkms -v cw20121003
    sudo dkms install alx_dkms -v cw20121003
    sudo depmod -a && sudo update-initramfs -u
    Check the installation via:
    Code:
    dkms status
    modinfo alx
    sudo modprobe -v alx

  7. #7
    Join Date
    Feb 2012
    Beans
    15

    Re: No internet connection when setting up Ubuntu 12.04

    Sounds nice, but...

    Code:
    ubuntu@ubuntu:~$ sudo apt-get install build-essential dkms linux-headers-$(uname -r) linux-headers-generic
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    linux-headers-3.5.0-23-generic is already the newest version.
    linux-headers-3.5.0-23-generic set to manually installed.
    The following extra packages will be installed:
      dpkg-dev fakeroot g++ g++-4.6 libalgorithm-diff-perl
      libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
      libstdc++6-4.6-dev libtimedate-perl linux-headers-3.2.0-23
      linux-headers-3.2.0-23-generic
    Suggested packages:
      debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
      libstdc++6-4.6-doc
    The following NEW packages will be installed:
      build-essential dkms dpkg-dev fakeroot g++ g++-4.6 libalgorithm-diff-perl
      libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
      libstdc++6-4.6-dev libtimedate-perl linux-headers-3.2.0-23
      linux-headers-3.2.0-23-generic linux-headers-generic
    0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
    Need to get 21.8 MB/21.9 MB of archives.
    After this operation, 96.5 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Err http://archive.ubuntu.com/ubuntu/ precise/main libstdc++6-4.6-dev amd64 4.6.3-1ubuntu5
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main g++-4.6 amd64 4.6.3-1ubuntu5
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main g++ amd64 4:4.6.3-1ubuntu5
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main libtimedate-perl all 1.2000-1
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main libdpkg-perl all 1.16.1.2ubuntu7
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main dpkg-dev all 1.16.1.2ubuntu7
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main build-essential amd64 11.5ubuntu2
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main libalgorithm-diff-perl all 1.19.02-2
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main libalgorithm-diff-xs-perl amd64 0.04-2build2
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main libalgorithm-merge-perl all 0.08-2
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23 all 3.2.0-23.36
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main linux-headers-3.2.0-23-generic amd64 3.2.0-23.36
      Could not resolve 'archive.ubuntu.com'
    Err http://archive.ubuntu.com/ubuntu/ precise/main linux-headers-generic amd64 3.2.0.23.25
      Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/libstdc++6-4.6-dev_4.6.3-1ubuntu5_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.6/g++-4.6_4.6.3-1ubuntu5_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-defaults/g++_4.6.3-1ubuntu5_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libt/libtimedate-perl/libtimedate-perl_1.2000-1_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.16.1.2ubuntu7_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.16.1.2ubuntu7_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/build-essential/build-essential_11.5ubuntu2_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-diff-perl/libalgorithm-diff-perl_1.19.02-2_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-diff-xs-perl/libalgorithm-diff-xs-perl_0.04-2build2_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/liba/libalgorithm-merge-perl/libalgorithm-merge-perl_0.08-2_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.2.0-23_3.2.0-23.36_all.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.2.0-23-generic_3.2.0-23.36_amd64.deb  Could not resolve 'archive.ubuntu.com'
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux-meta/linux-headers-generic_3.2.0.23.25_amd64.deb  Could not resolve 'archive.ubuntu.com'
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    ubuntu@ubuntu:~$ 

  8. #8
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,489
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: No internet connection when setting up Ubuntu 12.04

    Open the update-manager->Settings and activate the CD as a source. Then

    sudo apt-get update

    Try it again.

  9. #9
    Join Date
    Feb 2012
    Beans
    15

    Re: No internet connection when setting up Ubuntu 12.04

    Uhm ok, when i open the update-manager -> settings there is the following
    entry in "Other Software" --> "Cdrom with Ubuntu 12.04 'Precise Pangolin' "

    In "Ubuntu Software" -> "Installable from CD-ROM/DVD" there is the same entry.
    I think that means that de CD is already activated as source?

    Then i did "sudo apt-get update".

    Code:
    ubuntu@ubuntu:~$ sudo apt-get update
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ InRelease
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise InRelease
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ Release.gpg
    Err http://security.ubuntu.com precise-security InRelease                 
    
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ Release
    Err http://archive.ubuntu.com precise-updates InRelease
    
    Err http://security.ubuntu.com precise-security Release.gpg
      Could not resolve 'security.ubuntu.com'
    Err http://archive.ubuntu.com precise-updates Release.gpg
      Could not resolve 'archive.ubuntu.com'
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ Packages/DiffIndex
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ Translation-en_US
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) dists/precise/main/binary-i386/ Translation-en
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/main TranslationIndex
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/restricted TranslationIndex
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/main Translation-en_US
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/main Translation-en
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/restricted Translation-en_US
    Ign cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213) precise/restricted Translation-en
    Reading package lists... Done
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease  
    
    
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease  
    
    
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg  Could not resolve 'security.ubuntu.com'
    
    
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg  Could not resolve 'archive.ubuntu.com'
    
    
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    W: Duplicate sources.list entry cdrom://Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130213)/ precise/main i386 Packages (/var/lib/apt/lists/Ubuntu%2012.04.2%20LTS%20%5fPrecise%20Pangolin%5f%20-%20Release%20amd64%20(20130213)_dists_precise_main_binary-i386_Packages)
    ubuntu@ubuntu:~$ 
    And now? :/

  10. #10
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    6,489
    Distro
    Ubuntu Gnome 14.04 Trusty Tahr

    Re: No internet connection when setting up Ubuntu 12.04

    CD is inside the drive during the command?

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

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