apt-get install 'Something wicked happened...'

Hello All,

Just setup Ubuntu 14.04 console on my BB-XM. I’m trying to install LXDE but problem is I keep seeing errors such as:

`
Err http://ports.ubuntu.com/ubuntu-ports/ trusty/main libcap-ng0 armhf 0.7.3-1ubuntu2
Something wicked happened resolving ‘ports.ubuntu.com:http’ (-5 - No address associated with hostname)

`

I’ve can ping google successfully
I’ve run

`
sudo apt-get clean

`

&

`
sudo apt-get -y install lxde lxde-core lxde-icon-theme --fix-missing

`

But still not working.

Any thoughts? Thanks,

Leo

[-- multipart/alternative, encoding 7bit, 111 lines --]

    [-- text/plain, encoding 7bit, charset: UTF-8, 34 lines --]

Hello All,

Just setup Ubuntu 14.04 console on my BB-XM. I'm trying to install LXDE but
problem is I keep seeing errors such as:

Err http://ports.ubuntu.com/ubuntu-ports/ trusty/main libcap-ng0 armhf
0.7.3-1ubuntu2
  Something wicked happened resolving 'ports.ubuntu.com:http' (-5 - No
address associated with hostname)

It means that there's some sort of DNS problem.

It looks a bit odd to me that 'ports.ubuntu.com:http', it shouldn't
have the http on the end though that *might* simply be an error in the
error message.

Can you 'ping ports.ubuntu.com' ?

http://askubuntu.com/questions/207849/cant-install-a-package-due-to-something-wicked-happened-resolving-error

since you did not mention if you did all these steps please try these steps and see what you come up with.

Side note: I’ve never actually run into this problem personally, but googled the error ( seemed a fairly common search term ) and came up with loads of hits.

It looks a bit odd to me that ‘ports.ubuntu.com:http’, it shouldn’t
have the http on the end though that might simply be an error in the
error message.

Can you ‘ping ports.ubuntu.com’ ?

cl, that just a standard apt message with *:http’ indicating protocol.

Come to think of it I did run into this problem once a long time ago, and for me

$ sudo apt-get update

fixed the problem for me personally. A rookie mistake I made in a hurry while trying to install packages without updating after a fresh install as I recall.

I’d hesitate deleting the apt-lock file as this may be in place intentionally to avoid problematic packages. In this case I’d wait for input from Robert first.

Thanks all for the replies.

Pinging works:

`
ubuntu@arm:~$ ping ports.ubuntu.com
PING ports.ubuntu.com (91.189.88.140) 56(84) bytes of data.
64 bytes from sawo.canonical.com (91.189.88.140): icmp_seq=1 ttl=49 time=19.5 ms
64 bytes from sawo.canonical.com (91.189.88.140): icmp_seq=2 ttl=49 time=17.5 ms
64 bytes from sawo.canonical.com (91.189.88.140): icmp_seq=3 ttl=49 time=18.7 ms

`

Similar problems with update:

`
sudo apt-get update
[sudo] password for ubuntu:
Ign http://repos.rcn-ee.net trusty InRelease
Ign http://ports.ubuntu.com trusty InRelease
Ign http://ports.ubuntu.com trusty-updates InRelease
Err http://repos.rcn-ee.net trusty Release.gpg
Something wicked happened resolving ‘repos.rcn-ee.net:http’ (-5 - No address associated with hostname)
Hit http://ports.ubuntu.com trusty Release.gpg
Hit http://ports.ubuntu.com trusty-updates Release.gpg
Hit http://ports.ubuntu.com trusty Release
Hit http://ports.ubuntu.com trusty-updates Release
Hit http://repos.rcn-ee.net trusty Release
Hit http://ports.ubuntu.com trusty/main armhf Packages
Ign http://repos.rcn-ee.net trusty/main armhf Packages/DiffIndex
Hit http://ports.ubuntu.com trusty/universe armhf Packages
Hit http://ports.ubuntu.com trusty/multiverse armhf Packages
Hit http://ports.ubuntu.com trusty/main Translation-en
Hit http://ports.ubuntu.com trusty/multiverse Translation-en
Hit http://ports.ubuntu.com trusty/universe Translation-en
Hit http://ports.ubuntu.com trusty-updates/main armhf Packages
Hit http://ports.ubuntu.com trusty-updates/universe armhf Packages
Hit http://ports.ubuntu.com trusty-updates/multiverse armhf Packages
Hit http://ports.ubuntu.com trusty-updates/main Translation-en
Hit http://ports.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://ports.ubuntu.com trusty-updates/universe Translation-en
Ign http://ports.ubuntu.com trusty/main Translation-en_US
Ign http://ports.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ports.ubuntu.com trusty/universe Translation-en_US
Hit http://repos.rcn-ee.net trusty/main armhf Packages
Ign http://repos.rcn-ee.net trusty/main Translation-en_US
Ign http://repos.rcn-ee.net trusty/main Translation-en
W: Failed to fetch http://repos.rcn-ee.net/ubuntu/dists/trusty/Release.gpg Something wicked happened resolving ‘repos.rcn-ee.net:http’ (-5 - No address associated with hostname)

E: Some index files failed to download. They have been ignored, or old ones used instead.

`

A clean seems to temporary fix the issue:

`
ubuntu@arm:~$ sudo apt-get update
Ign http://repos.rcn-ee.net trusty InRelease
Ign http://ports.ubuntu.com trusty InRelease
Ign http://ports.ubuntu.com trusty-updates InRelease
Hit http://ports.ubuntu.com trusty Release.gpg
Get:1 http://ports.ubuntu.com trusty-updates Release.gpg [933 B]
Hit http://ports.ubuntu.com trusty Release
Get:2 http://ports.ubuntu.com trusty-updates Release [62.0 kB]
Get:3 http://repos.rcn-ee.net trusty Release.gpg [819 B]
Hit http://ports.ubuntu.com trusty/main armhf Packages
Hit http://repos.rcn-ee.net trusty Release
Hit http://ports.ubuntu.com trusty/universe armhf Packages
Hit http://ports.ubuntu.com trusty/multiverse armhf Packages
Hit http://ports.ubuntu.com trusty/main Translation-en
Hit http://ports.ubuntu.com trusty/multiverse Translation-en
Hit http://ports.ubuntu.com trusty/universe Translation-en
Get:4 http://ports.ubuntu.com trusty-updates/main armhf Packages [327 kB]
Hit http://repos.rcn-ee.net trusty/main armhf Packages
Get:5 http://ports.ubuntu.com trusty-updates/universe armhf Packages [218 kB]
Get:6 http://ports.ubuntu.com trusty-updates/multiverse armhf Packages [7,721 B]
Hit http://ports.ubuntu.com trusty-updates/main Translation-en
Hit http://ports.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://ports.ubuntu.com trusty-updates/universe Translation-en
Ign http://ports.ubuntu.com trusty/main Translation-en_US
Ign http://ports.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ports.ubuntu.com trusty/universe Translation-en_US
Ign http://repos.rcn-ee.net trusty/main Translation-en_US
Ign http://repos.rcn-ee.net trusty/main Translation-en
Fetched 616 kB in 18s (33.8 kB/s)
Reading package lists… Done

`

But trying to install LXDE brings me back to same issue:

`
sudo apt-get install lxde && lxde-core && lxde-icon-theme

displays loads of packages…

0 upgraded, 365 newly installed, 0 to remove and 21 not upgraded.
Need to get 125 MB of archives.
After this operation, 428 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://ports.ubuntu.com/ubuntu-ports/ trusty/main libcap-ng0 armhf 0.7.3-1ubuntu2
Something wicked happened resolving ‘ports.ubuntu.com:http’ (-5 - No address associated with hostname)
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libglib2.0-0 armhf 2.40.2-0ubuntu1 [919 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libdbus-glib-1-2 armhf 0.100.2-1 [58.7 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libelf1 armhf 0.158-0ubuntu5.1 [38.1 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libfuse2 armhf 2.9.2-4ubuntu4 [76.8 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libgck-1-0 armhf 3.10.1-1 [65.8 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libgcr-3-common all 3.10.1-1 [8,482 B]
Get:7 http://ports.ubuntu.com/ubuntu-ports/ trusty/main libgcr-base-3-1 armhf 3.10.1-1 [151 kB]
Get:8 http://ports.ubuntu.com/ubuntu-ports/ trusty-updates/main libsystemd-daemon0 armhf 204-5ubuntu20.9 [8,840 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports/ trusty/main systemd-shim armhf 6-2bzr1 [10.2 kB]

`

My interfaces file:

`
ubuntu@arm:~$ cat /etc/network/interfaces

This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth0
iface eth0 inet dhcp

Example to keep MAC address between reboots

#hwaddress ether DE:AD:BE:EF:CA:FE

The secondary network interface

#auto eth1
#iface eth1 inet dhcp

WiFi Example

#auto wlan0
#iface wlan0 inet dhcp

wpa-ssid “essid”

wpa-psk “password”

Ethernet/RNDIS gadget (g_ether)

… or on host side, usbnet and random hwaddr

Note on some boards, usb0 is automaticly setup with an init script

iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1

`

Thanks for suggestions but stumped!

Leo

Further to my last message I believe I’ve rectified the problem. I was using non-standard DNS servers. Restoring them to ISP standard servers seems to have fixed the issue.

Thanks again for the help.

Leo

You seem to have an *intermittent* DNS problem, ports.ubuntu.com works
now but repos.rcn-ee.net has stopped working.

I think your fundamental problem is with your internet connection
and/or ISP, nothing to do with BBB or Ubuntu.

Exactly what I was suggesting! :slight_smile:

double check your dns, "repos.rcn-ee.net" isn't setup with a "fixed" ip..

Regards,