OK, you did exactly what I wanted. You summoned up the text editor, and you have shown me the contents of the file named google-chrome.list. And you're right, it doesn't look like the terminal, because it isn't; it's an editor in which you can read, edit, and save text.
There's nothing to be afraid of, you
can't edit that file unless you are root, so nothing you do right now can do any harm. You can close the window. 'gedit' is the name of your text editor, and you will use it quite often in Linux, so get used to it. It's just like using notepad in Windows.
Now, let's make a decision. First, is Chrome installed on your machine now? If it is, AND you want to keep it, go to option #2. If you don't want Chrome, go to option #1.
Option #1:
The short, abrupt solution to your issue is to
delete the entire google-chrome.list file, since you are not using Chrome. The problem you're experiencing [the red X in Synaptic, and the failure to complete apt-get update (they're the same issue)] exists on 64-bit systems ever since Google decided to stop supporting 32-bit Chrome last month.
First, remove Chrome, if it is installed on your box now [if it's not, skip this step]:
Code:
sudo apt-get remove google-chrome
When that is done, remove the file we're after:
Code:
sudo rm /etc/apt/sources.list.d/google-chrome.list
Enter your password, and be done with it. NEXT CUSTOMER!! [you're done]
Now, go back to your terminal and run:
It should complete now, and I would be a bit surprised if the red X remains in synaptic.
Option #2:
If you have some plans to install or use Chrome later, you can follow these instructions. If you follow this option, you are going to edit that file, and I'm going to show you how. But before we edit it, we are going to save a backup copy of the file. Open a new terminal, and paste this command into the terminal:
Code:
sudo cp /etc/apt/sources.list.d/google-chrome.list /etc/apt/sources.list.d/google-chrome.list-BACKUP
This creates a copy of the file, and names it google-chrome.list-BACKUP. Confirm that you have done it correctly:
Code:
ls -a /etc/apt/sources.list.d/
If you see the BACKUP file, do this:
Code:
sudo gedit /etc/apt/sources.list.d/google-chrome.list
Notice it's the same command you used before, BUT this time,
we call gedit with sudo. This means that gedit will now be able to edit system files as root. You can't edit the files in /etc without sudo, because they are system configuration files; the permissions on those files allow ONLY a superuser to access them for editing.
An editor window will open again, and you will see the same file contents you saw before. YOU ARE NOW ROOT IN THIS EDITOR WINDOW. Look for the line that says:
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main
and CAREFULLY EDIT it to read
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
All you are doing is adding the [arch=amd64] after 'deb' and before 'http'. This sets the repo to 64-bit only, and fixes your issue.
When you've done that, save and exit the editor, the same way you would do in Windows.
Now, go back to your terminal and run:
It should complete now, and I would be a bit surprised if the red X remains in synaptic.