emmc flashing problem and avahi-deamon installation problem

i have installed ubuntu 13.04 on to my bbb a6 following the instructions from this site http://ozancaglayan.com/2013/11/14/ubuntu-13-10-for-beaglebone-black-part-1/
i got the final image dumped into my sd card.I am not able to flash it into my emmc even after i press the boot button n wait so long.If i remove the sdcard i am booting with angstrom.When i was trying to access ubuntu through sd card to upgrade and then install avahi-daemon i get the following in the terminal. pls help out!!

ubuntu@arm:~$ sudo su
[sudo] password for ubuntu:
root@arm:/home/ubuntu# sudo apt-get update && sudo apt-get install bash-completion
Err http://ports.ubuntu.com saucy InRelease

Err http://ports.ubuntu.com saucy-updates InRelease

Err http://ports.ubuntu.com saucy Release.gpg
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com saucy-updates Release.gpg
Could not resolve ‘ports.ubuntu.com
Reading package lists… Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/saucy/InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/saucy-updates/InRelease

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/saucy/Release.gpg Could not resolve ‘ports.ubuntu.com

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/saucy-updates/Release.gpg Could not resolve ‘ports.ubuntu.com

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
bash-completion
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 173 kB of archives.
After this operation, 892 kB of additional disk space will be used.
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main bash-completion all 1:2.0-1ubuntu3
Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bash-completion/bash-completion_2.0-1ubuntu3_all.deb Could not resolve ‘ports.ubuntu.com
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

root@arm:/home/ubuntu# sudo apt-get install avahi-daemon
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
bind9-host dbus geoip-database libapparmor1 libavahi-common-data libavahi-common3 libavahi-core7 libbind9-90 libdaemon0 libdns99 libgeoip1
libglib2.0-0 libglib2.0-data libisc95 libisccc90 libisccfg90 liblwres90 libnss-mdns libpam-systemd libsystemd-daemon0 libsystemd-login0
shared-mime-info systemd-services systemd-shim
Suggested packages:
avahi-autoipd dbus-x11 geoip-bin pm-utils
The following NEW packages will be installed:
avahi-daemon bind9-host dbus geoip-database libapparmor1 libavahi-common-data libavahi-common3 libavahi-core7 libbind9-90 libdaemon0 libdns99
libgeoip1 libglib2.0-0 libglib2.0-data libisc95 libisccc90 libisccfg90 liblwres90 libnss-mdns libpam-systemd libsystemd-daemon0 libsystemd-login0
shared-mime-info systemd-services systemd-shim
0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,591 kB of archives.
After this operation, 16.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main geoip-database all 20130813-1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libgeoip1 armhf 1.5.1-1ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main libglib2.0-0 armhf 2.38.1-0ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main libsystemd-daemon0 armhf 204-0ubuntu19
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libapparmor1 armhf 2.8.0-0ubuntu31
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main libsystemd-login0 armhf 204-0ubuntu19
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main dbus armhf 1.6.12-0ubuntu10
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main systemd-services armhf 204-0ubuntu19
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main libpam-systemd armhf 204-0ubuntu19
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libavahi-common-data armhf 0.6.31-2ubuntu4
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libavahi-common3 armhf 0.6.31-2ubuntu4
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libavahi-core7 armhf 0.6.31-2ubuntu4
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libisc95 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libdns99 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libisccc90 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libisccfg90 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libbind9-90 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main liblwres90 armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main bind9-host armhf 1:9.9.3.dfsg.P2-4ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy-updates/main libglib2.0-data all 2.38.1-0ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main shared-mime-info armhf 1.1-0ubuntu5
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main systemd-shim armhf 3+real-0ubuntu1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libdaemon0 armhf 0.14-2build1
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main avahi-daemon armhf 0.6.31-2ubuntu4
Could not resolve ‘ports.ubuntu.com
Err http://ports.ubuntu.com/ubuntu-ports/ saucy/main libnss-mdns armhf 0.10-3.2ubuntu1
Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/g/geoip-database/geoip-database_20130813-1_all.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/g/geoip/libgeoip1_1.5.1-1ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/g/glib2.0/libglib2.0-0_2.38.1-0ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/systemd/libsystemd-daemon0_204-0ubuntu19_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/apparmor/libapparmor1_2.8.0-0ubuntu31_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/systemd/libsystemd-login0_204-0ubuntu19_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/d/dbus/dbus_1.6.12-0ubuntu10_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/systemd/systemd-services_204-0ubuntu19_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/systemd/libpam-systemd_204-0ubuntu19_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/avahi/libavahi-common-data_0.6.31-2ubuntu4_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/avahi/libavahi-common3_0.6.31-2ubuntu4_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/avahi/libavahi-core7_0.6.31-2ubuntu4_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/libisc95_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/libdns99_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/libisccc90_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/libisccfg90_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/libbind9-90_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/liblwres90_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/b/bind9/bind9-host_9.9.3.dfsg.P2-4ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/g/glib2.0/libglib2.0-data_2.38.1-0ubuntu1_all.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/shared-mime-info/shared-mime-info_1.1-0ubuntu5_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/s/systemd-shim/systemd-shim_3+real-0ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/libd/libdaemon/libdaemon0_0.14-2build1_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/a/avahi/avahi-daemon_0.6.31-2ubuntu4_armhf.deb Could not resolve ‘ports.ubuntu.com
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/n/nss-mdns/libnss-mdns_0.10-3.2ubuntu1_armhf.deb Could not resolve ‘ports.ubuntu.com
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

That error occurs when you fail to connect the board to internet. How
do you currently have network access setup?

Regards,

well i was using an ethernet cable connecting to my pc for accessing
internet.In my pc i have wifi access which is working fine.it gets a
hardware address: 88:AE:1D:8F:5C:12.I don't knw why but i couldn't get
a 100mbps connection established till now.it says connecting and
finally gets disconnected.how do i fix both the problems of flashing
and upgrading?

well if at al u wer asking for my pc it gets it from a wifi router and
the net is working fine.after connecting the board and pc through
ethernet cable i realised that the connection is not getting
estalished.i could ssh into the board as ubuntu but i can see the
board as "boot" but not as beaglebone (which i used to get when i was
booting using emmc)