0

I’ve just got Ubuntu 14.04. I changed from Google Chrome (I have a Chromebook) and I’m finding it hard installing NFS world. It says I have unmet dependencies and so forth. I tried getting Wine but that was unsuccessful as well...

user@chrubuntu:~$ sudo apt-get install wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

I tried to update and upgrade when I updated it this is what appeared:

(it runs a few stuff in between)

Reading package lists... Done
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

Why is it saying that when I just ran the update?

user@chrubuntu:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  kde-l10n-engb
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I need some help. I only changed to this so I could play NFS world.

Melebius
  • 11,750
TevinYoungz
  • 1,581
  • 2
  • 10
  • 6

1 Answers1

1

Running apt-get update only fixes the problem after you remove one of the duplicate sources from your "sources.list" file.

To do that, open a terminal and type the following command:

sudo gedit /etc/apt/sources.list

Now, look for this line and delete it if it is there:

deb http://dl.google.com/linux/chrome/deb/ stable main

Next, type this in the terminal:

ls /etc/apt/sources.list.d

There should be only one "google-chrome.list" file. If there is more than one file or another file with a similar name, delete it by typing the following command:

sudo rm /etc/apt/sources.list.d/google-chrome.list

Now that you have eliminated the duplicate source, run:

sudo apt-get update

To deal with the "wine" issue, you need to enable the "Universe" repository.

Open software-center or synaptic.

Click on "edit" and select "Software Sources".

Make sure "Community-maintained free and open-source software (universe)" is selected.

Click on the "Other Software" tab.

Make sure "Canonical Partners" and "Indipendent" are selected.

You will need to enter a password to apply the changes.


The other problem is that the distro you are using, Trusty, is no longer a supported version of Ubuntu and reached EOL January 27, 2014. Consequentially, the URL(s) in your /etc/apt/sources.list file no longer exist.

(My fix below is not guaranteed to work. I've pulled it off before. Other times, ended up with broken packages on the system and had to go ahead and re-install. Since you're pretty much already there, it might not hurt to go ahead and give it a try. Before you do, I recommend you first see this post as this seems to be the accepted answer in the community for dealing with an unsupported or depreciated distro like "raring" How to install software or upgrade from old unsupported release?

To fix this, use the following commands.

First, use:

echo 'NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"' | sudo tee /etc/os-release

Then, use:

echo 'DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"' | sudo tee /etc/lsb-release

Next, you can update your /etc/apt/sources.list by using:

sudo sed -i 's/raring/trusty/g' /etc/apt/sources.list

Now you can rebuild your package list and upgrade your packages with this command:

sudo apt-get clean 
cd /var/lib/apt 
sudo mv lists lists.old 
sudo mkdir -p lists/partial 
sudo apt-get clean 
sudo apt-get update
sudo apt-get dist-upgrade

You should now be able to install wine.

Finally, don't forget to update the files you may have for any PPA(s) other than google in your /etc/apt/sources.list.d directory.

mchid
  • 44,904
  • 8
  • 102
  • 162