Announcement

Collapse
No announcement yet.

[CLOSED]Wicd takes a long time

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

    #31
    Re: Wicd takes a long time

    To the Grey Geek,

    All removed OK.

    My Synaptic Package manager no longer opens; it asks for a password but then nothing happens.
    KPackageKit opens but it tells me I have no Network connection.

    I am now stuck again.

    To dibl

    Yes the router is a DHCP server.
    cat /etc/resolv.conf
    and
    cat /etc/network/interfaces

    No such file or directory

    cat /etc/network/interfaces


    Code:

    cat /etc/wpa_supplicant/ifupdown.sh

    yeilded the following:
    Code:
    #!/bin/sh
    
    #####################################################################
    ## Purpose
    # This file is executed by ifupdown in pre-up, post-up, pre-down and
    # post-down phases of network interface configuration. It allows
    # ifup(8), and ifdown(8) to manage wpa_supplicant(8) and wpa_cli(8)
    # processes running in daemon mode.
    #
    # /etc/wpa_supplicant/functions.sh is sourced by this file.
    #
    # This file is provided by the wpasupplicant package.
    
    #####################################################################
    # Copyright (C) 2006 - 2009 Debian/Ubuntu wpasupplicant Maintainers 
    # <pkg-wpa-devel@lists.alioth.debian.org>
    #
    # This program is free software; you can redistribute it and/or
    # modify it under the terms of the GNU General Public License
    # as published by the Free Software Foundation; either version 2
    # of the License, or (at your option) any later version.
    #
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    #
    # On Debian GNU/Linux systems, the text of the GPL license,
    # version 2, can be found in /usr/share/common-licenses/GPL-2.
    
    if [ -n "$IF_WPA_MAINT_DEBUG" ]; then
        set -x
    fi
    
    # quit if we're called for the loopback
    if [ "$IFACE" = lo ]; then
        exit 0
    fi
    
    # allow wpa_supplicant interface to be specified via wpa-iface
    # useful for starting wpa_supplicant on one interface of a bridge
    if [ -n "$IF_WPA_IFACE" ]; then
        WPA_IFACE="$IF_WPA_IFACE"
    else
        WPA_IFACE="$IFACE"
    fi
    
    # source functions
    if [ -f /etc/wpa_supplicant/functions.sh ]; then
        . /etc/wpa_supplicant/functions.sh
    else
        exit 0
    fi
    
    # quit if executables are not installed
    if [ ! -x "$WPA_SUP_BIN" ] || [ ! -x "$WPA_CLI_BIN" ]; then
        exit 0
    fi
    
    do_start () {
        if test_wpa_cli; then
            # if wpa_action is active for this IFACE, do nothing
            ifupdown_locked && exit 0
    
            # if the administrator is calling ifup, say something useful
            if [ "$PHASE" = "pre-up" ]; then
                wpa_msg stderr "wpa_action is managing ifup/ifdown state of $WPA_IFACE"
                wpa_msg stderr "execute \`ifdown --force $WPA_IFACE' to stop wpa_action"
            fi
            exit 1
        elif ! set | grep -q "^IF_WPA"; then
            # no wpa- option defined for IFACE, do nothing
            exit 0
        fi
    
        # ensure stale ifupdown_lock marker is purged
        ifupdown_unlock
    
        # preliminary sanity checks for roaming daemon
        if [ -n "$IF_WPA_ROAM" ]; then
            if [ "$METHOD" != "manual" ]; then
                wpa_msg stderr "wpa-roam can only be used with the \"manual\" inet METHOD"
                exit 1
            fi
            if [ -n "$IF_WPA_MAPPING_SCRIPT" ]; then
                if ! type "$IF_WPA_MAPPING_SCRIPT" >/dev/null; then
                    wpa_msg stderr "wpa-mapping-script \"$IF_WPA_MAPPING_SCRIPT\" is not valid"
                    exit 1
                fi
            fi
            if [ -n "$IF_WPA_MAPPING_SCRIPT_PRIORITY" ] && [ -z "$IF_WPA_MAPPING_SCRIPT" ]; then
                wpa_msg stderr "\"wpa-mapping-script-priority 1\" is invalid without a wpa-mapping-script"
                exit 1
            fi
            IF_WPA_CONF="$IF_WPA_ROAM"
            WPA_ACTION_SCRIPT="/sbin/wpa_action"
        fi
    
        # master function; determines if ifupdown.sh should do something or not
        if [ -n "$IF_WPA_CONF" ] && [ "$IF_WPA_CONF" != "managed" ]; then
            if [ ! -s "$IF_WPA_CONF" ]; then
                wpa_msg stderr "cannot read contents of $IF_WPA_CONF"
                exit 1
            fi
            WPA_SUP_CONF_CTRL_DIR=$(sed -n -e 's/[[:space:]]*#.*//g' -e 's/[[:space:]]\+.*$//g' \
                -e 's/^ctrl_interface=\(DIR=\)\?\(.*\)/\2/p' "$IF_WPA_CONF")
            if [ -n "$WPA_SUP_CONF_CTRL_DIR" ]; then
                WPA_CTRL_DIR="$WPA_SUP_CONF_CTRL_DIR"
                WPA_SUP_CONF="-c $IF_WPA_CONF"
            else
                # specify the default ctrl_interface since none was defined in
                # the given IF_WPA_CONF
                WPA_SUP_CONF="-c $IF_WPA_CONF -C $WPA_CTRL_DIR"
            fi
        else
            # specify the default ctrl_interface
            WPA_SUP_CONF="-C $WPA_CTRL_DIR"
        fi
    }
    
    do_stop () {
        if test_wpa_cli; then
            # if wpa_action is active for this IFACE and calling ifdown,
            # do nothing
            ifupdown_locked && exit 0
        elif test_wpa_supplicant; then
            # wpa_supplicant process exists for this IFACE, but wpa_cli
            # process does not. Allow stop mode to kill this process.
            :
        else
            exit 0
        fi
    }
    
    case "$MODE" in 
        start)
            do_start
            case "$PHASE" in
                pre-up)
                    kill_wpa_supplicant
                    init_wpa_supplicant   || exit 1
                    conf_wpa_supplicant   || { kill_wpa_supplicant; exit 1; }
                    ;;
                post-up)
                    init_wpa_cli      || { kill_wpa_supplicant; exit 1; }
                    ;;
            esac
            ;;
    
        stop)
            do_stop
            case "$PHASE" in
                pre-down)
                    kill_wpa_cli
                    ;;
                post-down)
                    kill_wpa_supplicant
                    ;;
                *)
                    wpa_msg stderr "unknown phase: \"$PHASE\""
                    exit 1
                    ;;
            esac
            ;;
    
        *)
            wpa_msg stderr "unknown mode: \"$MODE\""
            exit 1
            ;;
    esac
    
    exit 0
    and

    ifconfig

    returned this:

    Code:
    lo    Link encap:Local Loopback 
         inet addr:127.0.0.1 Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING MTU:16436 Metric:1
         RX packets:108 errors:0 dropped:0 overruns:0 frame:0
         TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0 
         RX bytes:6480 (6.4 KB) TX bytes:6480 (6.4 KB)
    all of this was done after the Grey Geeks suggestion.

    John

    Comment


      #32
      Re: Wicd takes a long time

      It should not affect your ability to use a wired connection.

      All may not be lost, however. If you have not cleaned the downloaded package list then if your installation of wicd was recent you may be able to reinstall it (whether or not you have a connection) by typing

      Code:
      sudo apt-get install wicd

      Comment


        #33
        Re: Wicd takes a long time

        Originally posted by plant17


        To dibl

        cat /etc/network/interfaces

        No such file or directory
        try it

        Code:
        sudo cat /etc/network/interfaces
        and you will need to give the root password. I hope it responds better than Synaptic did ... :P

        Comment


          #34
          Re: Wicd takes a long time

          To dibl

          sudo cat /etc/network/interfaces

          returns

          Code:
          auto lo
          iface lo inet loopback
          To the liquidator

          It should not affect your ability to use a wired connection.

          It does affect it, I have no connection.

          The result of loading from the command line was not to sucessful (I think), here are the results:
          Code:
          john@linux-laptop:~$ sudo apt-get install wicd
          Reading package lists... Done
          Building dependency tree    
          Reading state information... Done
          The following extra packages will be installed:
           python-glade2 python-wicd wicd-daemon wicd-gtk
          Suggested packages:
           python-gtk2-doc
          The following NEW packages will be installed:
           python-glade2 python-wicd wicd wicd-daemon wicd-gtk
          0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
          Need to get 413 kB/425 kB of archives.
          After this operation, 3,006 kB of additional disk space will be used.
          Do you want to continue [Y/n]? y
          Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe python-wicd all 1.7.0+ds1-6
           Could not resolve 'ch.archive.ubuntu.com'
          Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-daemon all 1.7.0+ds1-6
           Could not resolve 'ch.archive.ubuntu.com'
          Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-gtk all 1.7.0+ds1-6
           Could not resolve 'ch.archive.ubuntu.com'
          Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd all 1.7.0+ds1-6
           Could not resolve 'ch.archive.ubuntu.com'
          Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/python-[/url]
          wicd_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
          Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-[/url]
          daemon_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
          Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-[/url]
          gtk_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
          Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd_1.7.0+ds1-6_all.deb[/url]
           Could not resolve 'ch.archive.ubuntu.com'
          E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
          john@linux-laptop:~$ apt-get update
          E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
          E: Unable to lock directory /var/lib/apt/lists/
          E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
          E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
          john@linux-laptop:~$ sudo apt-get update
          Err [url]http://security.ubuntu.com[/url] natty-security InRelease
           
          Err [url]http://ch.archive.ubuntu.com[/url] natty InRelease             
           
          Err [url]http://ch.archive.ubuntu.com[/url] natty-updates InRelease         
           
          Err [url]http://extras.ubuntu.com[/url] natty InRelease               
           
          Err [url]http://security.ubuntu.com[/url] natty-security Release.gpg         
           Could not resolve 'security.ubuntu.com'
          Err [url]http://extras.ubuntu.com[/url] natty Release.gpg
           Could not resolve 'extras.ubuntu.com'
          Err [url]http://ch.archive.ubuntu.com[/url] natty Release.gpg
           Could not resolve 'ch.archive.ubuntu.com'
          Err [url]http://ch.archive.ubuntu.com[/url] natty-updates Release.gpg
           Could not resolve 'ch.archive.ubuntu.com'
          Reading package lists... Done
          W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty/InRelease[/url] 
          
          W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease[/url] 
          
          W: Failed to fetch [url]http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease[/url] 
          
          W: Failed to fetch [url]http://extras.ubuntu.com/ubuntu/dists/natty/InRelease[/url] 
          
          W: Failed to fetch [url]http://security.ubuntu.com/ubuntu/dists/natty-security/Release.gpg[/url] 
          Could not resolve 'security.ubuntu.com'
          
          W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty/Release.gpg[/url] 
          Could not resolve 'ch.archive.ubuntu.com'
          
          W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty-updates/Release.gpg[/url] 
          Could not resolve 'ch.archive.ubuntu.com'
          
          W: Failed to fetch [url]http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg[/url] 
          Could not resolve 'extras.ubuntu.com'
          
          W: Some index files failed to download. They have been ignored, or old ones used instead.
          john@linux-laptop:~$
          John

          Comment


            #35
            Re: Wicd takes a long time

            Originally posted by plant17
            ......
            sudo cat /etc/network/interfaces

            returns

            Code:
            auto lo
            iface lo inet loopback
            ...
            To the liquidator

            It should not affect your ability to use a wired connection.

            It does affect it, I have no connection.
            Liquidator is correct. Removiing wifi configuration programs should not affect eth0 operations.
            But, some how, the command "allow-hotplug eth0" was removed from the interfaces config file.

            Use
            sudo kate /etc/network/interfaces
            to open that file and add
            allow-hotplug eth0
            to the end of it.
            Save it.
            Close kate.
            Reboot.
            Then try
            iwlist scanning
            to see if eth0 shows up in the list of ports. If it does you should have an internet connection.

            If it doesn't then
            kdesudo dolphin
            in a Konsole and browse to
            /var/cache/apt/archives/
            and look for knetworkmanager, dnsutils and modemmanager.
            If you find then right click on each one and choose "Open with --> Gdebi package installer" to re-install it.
            If they are not there then autoremove did its job.

            The result of loading from the command line was not to sucessful (I think), here are the results:
            Code:
            john@linux-laptop:~$ sudo apt-get install wicd
            Reading package lists... Done
            Building dependency tree    
            Reading state information... Done
            The following extra packages will be installed:
             python-glade2 python-wicd wicd-daemon wicd-gtk
            Suggested packages:
             python-gtk2-doc
            The following NEW packages will be installed:
             python-glade2 python-wicd wicd wicd-daemon wicd-gtk
            0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
            Need to get 413 kB/425 kB of archives.
            After this operation, 3,006 kB of additional disk space will be used.
            Do you want to continue [Y/n]? y
            Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe python-wicd all 1.7.0+ds1-6
            Could not resolve 'ch.archive.ubuntu.com'
            Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-daemon all 1.7.0+ds1-6
             Could not resolve 'ch.archive.ubuntu.com'
            Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-gtk all 1.7.0+ds1-6
            Could not resolve 'ch.archive.ubuntu.com'
            Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd all 1.7.0+ds1-6
            Could not resolve 'ch.archive.ubuntu.com'
            Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/python-wicd_1.7.0+ds1-6_all.deb[/url] 
            Could not resolve 'ch.archive.ubuntu.com'
            Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-daemon_1.7.0+ds1-6_all.deb[/url] 
            Could not resolve 'ch.archive.ubuntu.com'
            Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-gtk_1.7.0+ds1-6_all.deb[/url] 
            Could not resolve 'ch.archive.ubuntu.com'
            Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd_1.7.0+ds1-6_all.deb[/url] 
            Could not resolve 'ch.archive.ubuntu.com'
            E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
            john@linux-laptop:~$ apt-get update
            E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
            Either you have another copy of Synaptic or KPackageManager open (hence the active lock) or it crashed without removing the lock.

            E: Unable to lock directory /var/lib/apt/lists/
            E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
            E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
            john@linux-laptop:~$ sudo apt-get update
            Err http://security.ubuntu.com natty-security InRelease
            .....
            You can't download anything from the repository if you don't have an active eth0 or wireless connection, which you don't.

            You don't have a wireless connection because your driver for your wifi chip isn't loaded and so "wlan0" is not being created.

            There are a lot of chefs in this kitchen. I'll back out and let the master chefs to the cooking.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #36
              Re: Wicd takes a long time

              Results of iwlist scanning

              lo Interface doesn't suport scanning
              eth0 Interface doesn't suport scanning


              kdesudo dolphin
              in a Konsole and browse to
              /var/cache/apt/archives/
              and look for knetworkmanager, dnsutils and modemmanager.
              If you find then right click on each one and choose "Open with --> Gdebi package installer" to re-install it.
              If they are not there then autoremove did its job.
              dnsutils is there and loaded. Autoremove obviously did it's job, the other two files are not there. There are two files called networkmanager, should I try either or both of them?

              network manager pptp kde 0.9
              network manager 0.8.4


              John

              Comment


                #37
                Re: Wicd takes a long time

                Please help,

                I have no connection at all. No wireless, no Lan, nothing. Things have gone from bad to worse.

                John

                Comment


                  #38
                  Re: Wicd takes a long time

                  Originally posted by plant17
                  Please help,

                  I have no connection at all. No wireless, no Lan, nothing. Things have gone from bad to worse.

                  John
                  I'm not really sure from this what got broken but the wpa_supplicant trick we tried earlier should still get your wireless working. I'm not sure what broke, but connecting manually and reinstalling wicd should bring your networking back.

                  Hope this helps -
                  we see things not as they are, but as we are.
                  -- anais nin

                  Comment


                    #39
                    Re: Wicd takes a long time

                    Thanks Wiz,

                    I feel I am missing something important.

                    My starting position: I have no wireless and no internet connection when I plug directly into the router.

                    After this:

                    Let's try scripting the connection just for fun.

                    wpa_passphrase ssid "wpa_key" > ~/wpa_supplicant.conf

                    SSID and WPA key go on the command line. If your WPA key contains spaces it must be enclosed in single or double quotes. This will create a text file in your home directory called wpa_supplicant.conf

                    then do this -

                    sudo wpa_supplicant -D wext -i wlan0 -c ~/wpa_supplicant.conf -B

                    This will connect you to the wireless access point - then do

                    sudo dhclient wlan0

                    to get an IP address.
                    Konsole hangs hangs for 15 minutes.
                    Closed Konsole.
                    Ran
                    sudo wpa_supplicant -D wext -i wlan0 -c ~/wpa_supplicant.conf

                    Without the backgound command, the result was this:

                    john@linux-laptop:~$ sudo wpa_supplicant -D wext -i wlan0 -c ~/wpa_supplicant.conf
                    [sudo] password for john:
                    ioctl[SIOCSIWSCAN]: Device or resource busy
                    Failed to initiate AP scan.
                    CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0
                    ioctl[SIOCSIWSCAN]: Device or resource busy
                    Failed to initiate AP scan.
                    ioctl[SIOCSIWSCAN]: Device or resource busy
                    Failed to initiate AP scan.
                    ioctl[SIOCSIWSCAN]: Device or resource busy
                    Failed to initiate AP scan.
                    Trying to associate with 00:1b:11:a5:1f:26 (SSID='alpina' freq=2437 MHz)
                    Associated with 00:1b:11:a5:1f:26
                    CTRL-EVENT-DISCONNECTED bssid=00:1b:11:a5:1f:26 reason=0
                    Trying to associate with 00:1b:11:a5:1f:26 (SSID='alpina' freq=2437 MHz)
                    Associated with 00:1b:11:a5:1f:26
                    CTRL-EVENT-DISCONNECTED bssid=00:1b:11:a5:1f:26 reason=0
                    Trying to associate with 00:1b:11:a5:1f:26 (SSID='alpina' freq=2437 MHz)
                    Associated with 00:1b:11:a5:1f:26
                    CTRL-EVENT-DISCONNECTED bssid=00:1b:11:a5:1f:26 reason=0
                    Trying to associate with 00:1b:11:a5:1f:26 (SSID='alpina' freq=2437 MHz)
                    Associated with 00:1b:11:a5:1f:26

                    The last error message kept repeating endlessly until I closed the Konsole.

                    Now my position is, I have no wireless and no internet connection when I plug directly into the router.

                    I have obviously buggered something up rather seiously, thanks for all the help from everybody.

                    John

                    Comment


                      #40
                      Re: Wicd takes a long time

                      One step at a time I think - we need to get you a wired connection first.

                      Did you run the bit of code I gave you

                      Code:
                      sudo apt-get install wicd
                      If so what was the result? If it said it could not find the program then it has presumably been "cleaned" from the database since it was installed.

                      Do you have the installation cd available? If so, insert and mount it. Then go into kpackagekit and select sources and "enable" the CD as a source. It should already be listed but unchecked. Click apply (it might be some other name as I'm at a win box at the mo) to update the packagelist. You should then be able to install either knetworkmanager or wicd. At this point you want a basic wired connection so I would go with the former. Once installed uncheck the cd as a source, plug in an ethernet cable and reboot. On reboot you should have a wired connection at least. When you get to the desktop launch Konsole and do

                      Code:
                      sudo apt-get update
                      and then

                      Code:
                      sudo apt-get dist-upgrade
                      To ensure you are up to date.

                      Let us know whether you have a working connection. If so, it might also be worth giving your wireless a try at that point as for some people KNM works better than Wicd.

                      Comment


                        #41
                        Re: Wicd takes a long time

                        Yes I tried installing Wicd and got the following.
                        Code:
                        john@linux-laptop:~$ sudo apt-get install wicd
                        Reading package lists... Done
                        Building dependency tree    
                        Reading state information... Done
                        The following extra packages will be installed:
                         python-glade2 python-wicd wicd-daemon wicd-gtk
                        Suggested packages:
                         python-gtk2-doc
                        The following NEW packages will be installed:
                         python-glade2 python-wicd wicd wicd-daemon wicd-gtk
                        0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
                        Need to get 413 kB/425 kB of archives.
                        After this operation, 3,006 kB of additional disk space will be used.
                        Do you want to continue [Y/n]? y
                        Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe python-wicd all 1.7.0+ds1-6
                         Could not resolve 'ch.archive.ubuntu.com'
                        Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-daemon all 1.7.0+ds1-6
                         Could not resolve 'ch.archive.ubuntu.com'
                        Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd-gtk all 1.7.0+ds1-6
                         Could not resolve 'ch.archive.ubuntu.com'
                        Err [url]http://ch.archive.ubuntu.com/ubuntu/[/url] natty/universe wicd all 1.7.0+ds1-6
                         Could not resolve 'ch.archive.ubuntu.com'
                        Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/python-[/url]
                        wicd_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
                        Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-[/url]
                        daemon_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
                        Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd-[/url]
                        gtk_1.7.0+ds1-6_all.deb Could not resolve 'ch.archive.ubuntu.com'
                        Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/pool/universe/w/wicd/wicd_1.7.0+ds1-6_all.deb[/url]
                         Could not resolve 'ch.archive.ubuntu.com'
                        E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
                        john@linux-laptop:~$ apt-get update
                        E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
                        E: Unable to lock directory /var/lib/apt/lists/
                        E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
                        E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
                        john@linux-laptop:~$ sudo apt-get update
                        Err [url]http://security.ubuntu.com[/url] natty-security InRelease
                         
                        Err [url]http://ch.archive.ubuntu.com[/url] natty InRelease             
                         
                        Err [url]http://ch.archive.ubuntu.com[/url] natty-updates InRelease         
                         
                        Err [url]http://extras.ubuntu.com[/url] natty InRelease               
                         
                        Err [url]http://security.ubuntu.com[/url] natty-security Release.gpg         
                         Could not resolve 'security.ubuntu.com'
                        Err [url]http://extras.ubuntu.com[/url] natty Release.gpg
                         Could not resolve 'extras.ubuntu.com'
                        Err [url]http://ch.archive.ubuntu.com[/url] natty Release.gpg
                         Could not resolve 'ch.archive.ubuntu.com'
                        Err [url]http://ch.archive.ubuntu.com[/url] natty-updates Release.gpg
                         Could not resolve 'ch.archive.ubuntu.com'
                        Reading package lists... Done
                        W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty/InRelease[/url] 
                        
                        W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty-updates/InRelease[/url] 
                        
                        W: Failed to fetch [url]http://security.ubuntu.com/ubuntu/dists/natty-security/InRelease[/url] 
                        
                        W: Failed to fetch [url]http://extras.ubuntu.com/ubuntu/dists/natty/InRelease[/url] 
                        
                        W: Failed to fetch [url]http://security.ubuntu.com/ubuntu/dists/natty-security/Release.gpg[/url] 
                        Could not resolve 'security.ubuntu.com'
                        
                        W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty/Release.gpg[/url] 
                        Could not resolve 'ch.archive.ubuntu.com'
                        
                        W: Failed to fetch [url]http://ch.archive.ubuntu.com/ubuntu/dists/natty-updates/Release.gpg[/url] 
                        Could not resolve 'ch.archive.ubuntu.com'
                        
                        W: Failed to fetch [url]http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg[/url] 
                        Could not resolve 'extras.ubuntu.com'
                        
                        W: Some index files failed to download. They have been ignored, or old ones used instead.
                        john@linux-laptop:~$
                        I do not have an installation CD, I upgraded directly. I will order one now. Thanks.

                        John

                        Comment


                          #42
                          Re: Wicd takes a long time

                          By that am I right in assuming you mean download (as Canonical have - or are about to- stopped sending cds out).

                          In all honesty I think a reinstall is probably the easiest way for you to take, as it will probably solve the original problem.

                          However, once you have got the CD it will definitely be worth using it to try installing the missing packages first.

                          Good luck

                          Comment


                            #43
                            Re: Wicd takes a long time

                            Thanks, I have downloaded it and will try your sugestion. If that doesn't do it I will reinstall.

                            Probably the best is to start with a clean sheet. I have no doubt messed a few bits up with my tinkering.

                            John

                            Comment


                              #44
                              Re: Wicd takes a long time

                              In a terminal, you can attempt to start the networking service with

                              Code:
                              sudo service networking start
                              and observe the error output, and maybe learn something about the nature of the problem. But, I do think you've messed up something important -- whether it be the DHCP client, resolv.conf, or what I cannot say.

                              FYI, a correctly working /etc/network/interfaces file for a DHCP client that uses both wlan0 and eth0 should look a lot like this:

                              Code:
                              auto lo
                              iface lo inet loopback
                              
                              allow-hotplug eth0
                              iface eth0 inet dhcp
                              So you might try editing it to look like that, then reboot the computer and see if you have at least an eth0 functioning.

                              Comment


                                #45
                                Re: Wicd takes a long time

                                Thanks to all for the help,

                                I have decided on a clean install. I will carefully look over all the work we have done together and see how I go. I will close this thread here and start a new one when I get stuck again.

                                Taking a deep breath and relaunching. Every problem teaches me a bit more.

                                John

                                Comment

                                Working...
                                X