Announcement

Collapse
No announcement yet.

[SOLVED] Problem with New Wired Connection

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: Problem with New Wired Connection

    That file is owned by root. You can't edit the file with your user account without sudo. From a terminal,

    1. sudo nano /etc/network/interfaces (enter your password at the prompt)
    2. edit the file per my previous post
    3. to save the file press ctrl-o
    4. to exit press ctrl-x
    5. sudo /etc/init.d/networking restart

    If you prefer to use Kate, then follow Detonate's instructions to edit the file: kdesudo kate /etc/network/interfaces.

    After making the changes you need to restart the networking service. That's the command "sudo /etc/init.d/networking restart" in step 5.

    Cheers, UK
    linux && bash = "the future"

    Comment


      #17
      Re: Problem with New Wired Connection

      Here it is:

      Code:
      electro@ubuntu:~$ cat /etc/apt/sources.list
      # deb cdrom:[Kubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted                                
      # See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to    
      # newer versions of the distribution.                      
      
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty main restricted
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty main restricted
      
      ## Major bug fix updates produced after the final release of the
      ## distribution.                        
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates main restricted
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates main restricted
      
      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
      ## team. Also, please note that software in universe WILL NOT receive any 
      ## review or updates from the Ubuntu security team.            
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty universe          
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty universe        
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates universe      
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates universe    
      
      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
      ## team, and may not be under a free licence. Please satisfy yourself as to 
      ## your rights to use the software. Also, please note that software in   
      ## multiverse WILL NOT receive any review or updates from the Ubuntu    
      ## security team.                              
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty multiverse         
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty multiverse       
      deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates multiverse     
      deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-updates multiverse
      
      ## Uncomment the following two lines to add software from the 'backports'
      ## repository.
      ## N.B. software from this repository may not have been tested as
      ## extensively as that contained in the main release, although it includes
      ## newer versions of some applications which may provide useful features.
      ## Also, please note that software in backports WILL NOT receive any review
      ## or updates from the Ubuntu security team.
      # deb [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-backports main restricted universe multiverse
      # deb-src [url]http://us.archive.ubuntu.com/ubuntu/[/url] jaunty-backports main restricteduniverse multiverse
      
      ## Uncomment the following two lines to add software from Canonical's
      ## 'partner' repository.
      ## This software is not part of Ubuntu, but is offered by Canonical and the
      ## respective vendors as a service to Ubuntu users.
      # deb [url]http://archive.canonical.com/ubuntu[/url] jaunty partner
      # deb-src [url]http://archive.canonical.com/ubuntu[/url] jaunty partner
      
      deb [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security main restricted
      deb-src [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security main restricted
      deb [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security universe
      deb-src [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security universe
      deb [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security multiverse
      deb-src [url]http://security.ubuntu.com/ubuntu[/url] jaunty-security multiverse
      deb [url]http://apt.wicd.net[/url] jaunty extras
      I changed the file intefaces like you said successfully.

      Comment


        #18
        Re: Problem with New Wired Connection

        You made the edit to the interfaces file, did you restart the networking service and test it? Your sources.list file looks a little different from mine. I removed my optional repositories to only show the main stuff.

        Code:
        ## Jaunty main repositories
        deb [url]http://archive.ubuntu.com/ubuntu/[/url] jaunty main universe restricted multiverse
        deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] jaunty main universe restricted multiverse #Added by software-properties
        
        ## Jaunty update repositories
        deb [url]http://security.ubuntu.com/ubuntu/[/url] jaunty-security universe main multiverse restricted
        deb-src [url]http://security.ubuntu.com/ubuntu/[/url] jaunty-security universe main multiverse restricted
        deb [url]http://archive.ubuntu.com/ubuntu/[/url] jaunty-updates universe main multiverse restricted
        deb-src [url]http://archive.ubuntu.com/ubuntu/[/url] jaunty-updates universe main multiverse restricted
        deb [url]http://ppa.launchpad.net/kubuntu-ppa/ppa/ubuntu[/url] jaunty main
        linux && bash = "the future"

        Comment


          #19
          Re: Problem with New Wired Connection

          Yes, and its not working.


          Comment


            #20
            Re: Problem with New Wired Connection

            If you want to install wicd, you need to edit your sources file and remove the "#" sign from every line that begins with "deb" except the very first one that begins with "deb cdrom". You can do this by editing the file as sudo with

            Code:
            kdesudo kate /etc/apt/sources.list
            edit and save the file.

            Then run

            Code:
            sudo apt-get update
            then

            Code:
            sudo apt-get install wicd

            Comment


              #21
              Re: Problem with New Wired Connection

              I'm confused, if the network is not up on his machine then "sudo apt-get update" is not going to work. Post contents of your interfaces file and ifconfig -a in addition to making the changes to your sources.list file. I want to make sure you entered the data correctly.

              Do you receive an address dynamically from your ISP or a static address?
              linux && bash = "the future"

              Comment


                #22
                Re: Problem with New Wired Connection

                Yes, its not working.

                Code:
                electro@ubuntu:~$ sudo apt-get update      
                Err [url]http://us.archive.ubuntu.com[/url] jaunty Release.gpg
                 Could not resolve 'us.archive.ubuntu.com'    
                Err [url]http://us.archive.ubuntu.com[/url] jaunty/main Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'          
                Err [url]http://us.archive.ubuntu.com[/url] jaunty/restricted Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'             
                Err [url]http://us.archive.ubuntu.com[/url] jaunty/universe Translation-en_US 
                 Could not resolve 'us.archive.ubuntu.com'             
                Err [url]http://us.archive.ubuntu.com[/url] jaunty/multiverse Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'             
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-updates Release.gpg     
                 Could not resolve 'us.archive.ubuntu.com'             
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-updates/main Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'              
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-updates/restricted Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'                 
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-updates/universe Translation-en_US 
                 Could not resolve 'us.archive.ubuntu.com'                 
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-updates/multiverse Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'                 
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-backports Release.gpg        
                 Could not resolve 'us.archive.ubuntu.com'                 
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-backports/main Translation-en_US  
                 Could not resolve 'us.archive.ubuntu.com'                 
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-backports/restricted Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'                  
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-backports/universe Translation-en_US 
                 Could not resolve 'us.archive.ubuntu.com'                  
                Err [url]http://us.archive.ubuntu.com[/url] jaunty-backports/multiverse Translation-en_US
                 Could not resolve 'us.archive.ubuntu.com'                  
                                     
                Reading package lists... Done                         
                W: Failed to fetch [url]http://us.archive.ubuntu.com/ubuntu/dists/jaunty/Release.gpg[/url] Could not resolve 'us.archive.ubuntu.com'                   
                
                W: Failed to fetch [url]http://us.archive.ubuntu.com/ubuntu/dists/jaunty/main/i18n/Translation-en_US.bz2[/url] Could not resolve 'us.archive.ubuntu.com'         
                
                W: Failed to fetch [url]http://us.archive.ubuntu.com/ubuntu/dists/jaunty/restricted/i18n/Translation-en_US.bz2[/url] Could not resolve 'us.archive.ubuntu.com'      
                
                ...
                
                W: Some index files failed to download, they have been ignored, or old ones used instead.
                W: You may want to run apt-get update to correct these problems
                and so on... :S


                I use static address.

                Comment


                  #23
                  Re: Problem with New Wired Connection

                  Originally posted by ukchucktown
                  I'm confused, if the network is not up on his machine then "sudo apt-get update" is not going to work.
                  OK, I had a "Duh" moment. Yes we must get a connection working first.

                  Comment


                    #24
                    Re: Problem with New Wired Connection

                    A static address is totally different from dhcp. That takes a bit more configuration. Your interfaces file will need to look something like the following...

                    auto eth0
                    iface eth0 inet static
                    address <ip address>
                    netmask <netmask>

                    You will also need to configure your DNS.

                    linux &amp;&amp; bash = &quot;the future&quot;

                    Comment


                      #25
                      Re: Problem with New Wired Connection

                      Ok, I'll do that now, just to ask how to configure DNS?
                      I dont have network manager installed.

                      Comment


                        #26
                        Re: Problem with New Wired Connection

                        If you follow the instructions in my howto here it should work.

                        http://kubuntuforums.net/forums/inde...opic=3100052.0

                        Comment


                          #27
                          Re: Problem with New Wired Connection

                          That requires changes to /etc/resolv.conf. Also add gateway <gateway> to the eth0 stanza you create in the interfaces file. Try adding the following two lines to /etc/resolv.conf. Remember all these files are owned by root so you need sudo or kdesudo when launching the editor.

                          nameserver <primary dns ip>
                          nameserver <secondary dns ip>
                          linux &amp;&amp; bash = &quot;the future&quot;

                          Comment


                            #28
                            Re: Problem with New Wired Connection

                            Finally, I'm writing on Kubuntu.
                            I read that HowTo before, but I understand the steps now.
                            Thank you guys a lot, its working just fine!

                            Comment


                              #29
                              Re: Problem with New Wired Connection

                              Originally posted by electrokuber
                              Here's what I did and output:

                              electro@ubuntu:~$ sudo apt-get install wicd
                              [sudo] password for electro:
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              E: Couldn't find package wicd
                              electro@ubuntu:~$ sudo apt-get remove network-manager-kde
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              Package network-manager-kde is not installed, so not removed
                              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                              electro@ubuntu:~$ sudo apt-get remove network-manager
                              Reading package lists... Done
                              Building dependency tree
                              Reading state information... Done
                              The following packages will be REMOVED:
                              network-manager plasma-widget-network-manager
                              0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
                              After this operation, 3621kB disk space will be freed.
                              Do you want to continue [Y/n]? y
                              (Reading database ... 88411 files and directories currently installed.)
                              Removing plasma-widget-network-manager ...
                              Removing network-manager ...
                              * Stopping network connection manager NetworkManager [ OK ]
                              Removing any system startup links for /etc/init.d/NetworkManager ...
                              /etc/rc2.d/S50NetworkManager
                              /etc/rc3.d/S50NetworkManager
                              /etc/rc4.d/S50NetworkManager
                              /etc/rc5.d/S50NetworkManager
                              Processing triggers for libc6 ...
                              ldconfig deferred processing now taking place
                              Processing triggers for man-db ...
                              I'm glad that you got this problem resolved. I've bolded the items above that resulted in your initial problem.

                              You attempted in install wicd. But the result was the bolded error - it couldn't find it, so it was not installed. Then, you attempted to remove network-manager-kde, but it also was not installed so couldn't be removed. Finally, you removed network-manager, which was successful. The result was that you removed the one installed GUI network manager before you had successfully installed another. I hope that you learned a valuable lesson from this, and that others reading this thread will take heed:

                              Read the resulting messages from any apt-get commands. Understand what they mean, and when in doubt, post questions before proceding.
                              Using Kubuntu Linux since March 23, 2007
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X