sudo apt-get update error

I am trying to install Winehq in ubuntu17.10
when I run sudo apt-get update, i get the following error:\
Ign:1 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful InRelease
Ign:2 http://security.ubuntu.com/ubuntu artful-security InRelease                                                                                                      
Ign:3 http://archive.ubuntu.com/ubuntu artful InRelease                                                                                                                
Ign:4 http://us.archive.ubuntu.com/ubuntu artful InRelease                                                                                                                                      
Err:5 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful Release                                                                                                                            
  404  Not Found
Err:6 http://security.ubuntu.com/ubuntu artful-security Release                                                                                                                              
  404  Not Found [IP: 91.189.88.161 80]
Err:7 http://archive.ubuntu.com/ubuntu artful Release                                                                                                                  
  404  Not Found [IP: 91.189.88.152 80]
Ign:8 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                              
Ign:9 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease                                                      
Err:10 http://us.archive.ubuntu.com/ubuntu artful Release                                                                  
  404  Not Found [IP: 91.189.91.23 80]
Err:11 http://us.archive.ubuntu.com/ubuntu artful-updates Release                                                          
  404  Not Found [IP: 91.189.91.23 80]
Err:12 http://us.archive.ubuntu.com/ubuntu artful-backports Release                                                        
  404  Not Found [IP: 91.189.91.23 80]
Hit:13 https://dl.winehq.org/wine-builds/ubuntu artful InRelease                                                          
Hit:14 https://dl.winehq.org/wine-builds/ubuntu trusty InRelease      
Err:15 https://http//cran.stat.ucla.edu /bin/linux/ubuntu InRelease
  Could not resolve 'http'
How could I solve this?
sunseAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SeanSystem EngineerCommented:
Have you tried to do sudo apt-get upgrade first?
0
sunseAuthor Commented:
The error occurs when I run sudo apt-get update
0
AlanConsultantCommented:
Hi,

Try running a 'clean' first, then 'update', then 'upgrade':

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade

Open in new window


Does that make any difference?

Alan.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sunseAuthor Commented:
not working yet
0
sunseAuthor Commented:
I run sudo apt-get autoremove and i got this message
eading package lists... Done
Building dependency tree      
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:49
W: Target Sources (multiverse/source/Sources) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:51

What should I do about the configured multiple times in the sources.list file?
0
AlanConsultantCommented:
Hi,

If you have that, you can manually 'de-duplicate' and tidy it up.

If you aren't sure, post a copy of your file here, and I'll have a look for you.

Alan.
0
sunseAuthor Commented:
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]/ artful main restricted
deb-src http://archive.ubuntu.com/ubuntu artful main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ artful main multiverse restricted universe
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates main multiverse restricted universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful universe
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful multiverse
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner

deb http://security.ubuntu.com/ubuntu artful-security main restricted
deb-src http://security.ubuntu.com/ubuntu artful-security main multiverse restricted universe
deb http://security.ubuntu.com/ubuntu artful-security universe
deb-src http://security.ubuntu.com/ubuntu artful-security universe
deb http://security.ubuntu.com/ubuntu artful-security multiverse
deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
deb https://http://cran.stat.ucla.edu/ /bin/linux/ubuntu artful/
~
0
sunseAuthor Commented:
I am sending the complete error message here:
Ign:1 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful InRelease
Ign:2 http://security.ubuntu.com/ubuntu artful-security InRelease                                                                                                                                                
Ign:3 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu artful InRelease                                                                                                                                            
Ign:4 http://us.archive.ubuntu.com/ubuntu artful InRelease                                                            
Ign:5 http://archive.ubuntu.com/ubuntu artful InRelease                                                                                                                                                
Err:6 http://security.ubuntu.com/ubuntu artful-security Release                                                                                                                                        
  404  Not Found [IP: 91.189.88.162 80]
Ign:7 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                                                              
Err:8 http://ppa.launchpad.net/marutter/rrutter/ubuntu artful Release                                                  
  404  Not Found
Err:9 http://archive.ubuntu.com/ubuntu artful Release                                                                  
  404  Not Found [IP: 91.189.88.149 80]
Ign:10 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease                            
Err:11 http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu artful Release                            
  404  Not Found
Err:12 http://us.archive.ubuntu.com/ubuntu artful Release                                        
  404  Not Found [IP: 91.189.91.23 80]
Err:13 http://us.archive.ubuntu.com/ubuntu artful-updates Release          
  404  Not Found [IP: 91.189.91.23 80]
Err:14 http://us.archive.ubuntu.com/ubuntu artful-backports Release        
  404  Not Found [IP: 91.189.91.23 80]
Err:15 https://http//cran.stat.ucla.edu /bin/linux/ubuntu InRelease        
  Could not resolve 'http'
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu artful-security Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/marutter/rrutter/ubuntu artful Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://archive.ubuntu.com/ubuntu artful Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu artful Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu artful Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu artful-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:49
W: Target Sources (multiverse/source/Sources) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:51
0
AlanConsultantCommented:
Hi,

I have tidied it up as much as I can see - I don't think you can get it any simpler unless you remove stuff, but don't go there.

This is what I suggest you do:

1) Make a backup of the current sources.list (the backup filename I used below is just the date and time in standard format):

sudo cp /etc/apt/sources.list /etc/apt/sources.list.20171109.1014

Open in new window


2) Edit the sources.list file to be as per the attachment:

gksudo gedit /etc/apt/sources.list

Open in new window


You could just delete it all, and copy / paste from the attached.  Save the file before closing gedit.

3) Try re-running the above command and hopefully the duplicates warning will be gone.


Note:  to upload the file here, I had to add a txt extension.  That is an EE website issue only.


If anything is not happy, reverse the process and restore the backup sources.list version.

Alan.
sources.list.txt
1
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Looking at your output, it appears every single repository access failed.

First make sure DNS is working for this machine/container.

Ensure this works...

ping archive.ubuntu.com

Open in new window


If ping works, then just follow the instructions. For example, to resolve...

W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:47 and /etc/apt/sources.list:49

Open in new window


Delete line 49.

Unsure how you got into this situation + APT is usually very good about telling you how to recover problems.

Just follow the instructions output + likely all will be well.
0
sunseAuthor Commented:
Thnk you for your response.  I have deleted the indicated lines from the sources.list file.  The other errors do not indicate a number line.  How should I go about removing those? This is what I have done so far and the list of errors has decreased, but there are still some.  Please see below commands

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo cp sources.list sources.list.old
sudo cp -r sources.list.d sources,list.d.old
sudo rm /ect/apt/sources.lisr.d/*
sudo apt-get update && sudo apt-get upgrade

 sudo apt-get update && sudo apt-get dist-upgrade
Err:1 http://us.old-releases.ubuntu.com/ubuntu artful InRelease
  Could not resolve 'us.old-releases.ubuntu.com'
Err:2 http://us.old-releases.ubuntu.com/ubuntu artful-updates InRelease
  Could not resolve 'us.old-releases.ubuntu.com'
Err:3 http://us.old-releases.ubuntu.com/ubuntu artful-backports InRelease
  Could not resolve 'us.old-releases.ubuntu.com'
Ign:4 http://old-releases.ubuntu.com/ubuntu artful InRelease  
Ign:5 http://old-releases.ubuntu.com/ubuntu artful-security InRelease
Err:6 http://old-releases.ubuntu.com/ubuntu artful Release
  404  Not Found
Err:7 http://old-releases.ubuntu.com/ubuntu artful-security Release
  404  Not Found
Err:8 https://http//cran.stat.ucla.edu /bin/linux/ubuntu InRelease
  Could not resolve 'http'
Reading package lists... Done
E: The repository 'http://old-releases.ubuntu.com/ubuntu artful Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://old-releases.ubuntu.com/ubuntu artful-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Provide output of...

ping archive.ubuntu.com

Open in new window


Also provide the output of...

lsb_release -a

Open in new window

0
sunseAuthor Commented:
PING archive.ubuntu.com (91.189.88.161) 56(84) bytes of data.
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=1 ttl=128 time=74.6 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=2 ttl=128 time=75.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=3 ttl=128 time=71.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=4 ttl=128 time=74.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=5 ttl=128 time=71.6 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=6 ttl=128 time=71.6 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=7 ttl=128 time=73.0 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=8 ttl=128 time=955 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=9 ttl=128 time=77.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=10 ttl=128 time=72.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=11 ttl=128 time=72.3 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=12 ttl=128 time=74.9 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=13 ttl=128 time=73.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=14 ttl=128 time=75.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=15 ttl=128 time=72.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=16 ttl=128 time=74.8 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=17 ttl=128 time=72.7 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=18 ttl=128 time=72.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=19 ttl=128 time=74.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=20 ttl=128 time=74.0 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=21 ttl=128 time=81.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=22 ttl=128 time=71.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=23 ttl=128 time=71.9 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=24 ttl=128 time=72.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=25 ttl=128 time=71.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=26 ttl=128 time=71.6 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=27 ttl=128 time=72.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=28 ttl=128 time=72.0 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=29 ttl=128 time=73.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=30 ttl=128 time=75.3 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=31 ttl=128 time=71.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=32 ttl=128 time=73.9 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=33 ttl=128 time=71.7 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=34 ttl=128 time=75.1 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=35 ttl=128 time=87.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=36 ttl=128 time=71.2 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=37 ttl=128 time=73.8 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=38 ttl=128 time=71.7 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=39 ttl=128 time=71.7 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=40 ttl=128 time=71.8 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=41 ttl=128 time=72.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=42 ttl=128 time=71.4 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=43 ttl=128 time=72.3 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=44 ttl=128 time=74.8 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=45 ttl=128 time=71.9 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=46 ttl=128 time=71.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=47 ttl=128 time=71.5 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=48 ttl=128 time=72.1 ms
64 bytes from keeton.canonical.com (91.189.88.161): icmp_seq=49 ttl=128 time=74.0 ms
^C

No LSB modules are available.
Distributor ID:      Ubuntu
Description:      Ubuntu 17.10
Release:      17.10
Codename:      artful
0
AlanConsultantCommented:
Hi Sunse,

If you are still getting those same errors with the updated sources.list file I posted, then you have a serious issue I think.

Please can you check that file again, and make sure nothing has created duplicate entries again.

Thanks,

Alan.
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Excellent. You have connectivity + are running Artful.

Next...

Describe how you got to the Artful release level - fresh install or upgrade from some other release. If you upgraded, mention the version you started with.

Also go through Alan's comments. Looks like he provided you with a clean APT starting point. Be sure to mention what occurred when you implemented his suggestion.
0
sunseAuthor Commented:
I have reinstalled the vm workstation player 12 (download found at https://www.ubuntu.com/download/desktop),  and ubuntu17.10 (download found at) https://www.ubuntu.com/download/desktop)

I have installed WineHQ at https://wiki.winehq.org/Ubuntu
These are the installation instructions:

sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ 

Update packages does not work:Update packages:

sudo apt-get update

I get the following message:
"Hit:1 http://us.archive.ubuntu.com/ubuntu artful InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu artful-updates InRelease                                                                  
Hit:3 http://us.archive.ubuntu.com/ubuntu artful-backports InRelease                                                                                
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [76.7 kB]                                                                          
Get:5 https://dl.winehq.org/wine-builds/ubuntu artful InRelease [4,677 B]                                    
Err:5 https://dl.winehq.org/wine-builds/ubuntu artful InRelease                                              
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
Reading package lists... Done
W: GPG error: https://dl.winehq.org/wine-builds/ubuntu artful InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details."

There are not as many errors as in my previous installation and when I run apt-get dist-upgrade every thing runs successfully.  Any thoughts?
0
sunseAuthor Commented:
There are not broken dependencies:

gcefalu@ubuntu:/etc/apt$ sudo apt-get check
Reading package lists... Done
Building dependency tree      
Reading state information... Done
0
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Try installing 17.10 + then immediately issue apt-get update, before any other commands.

Do not add repositories + certainly don't add i386. Just install + do apt-get update + report what occurs.

Maybe the image contains a bug.
0
sunseAuthor Commented:
Thank you for your help.  This fixed the problem:
1.sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 818A435C5FCBF54A
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Be good if you open a ticket on Launchpad about this, including the image link of your download + your fix.

This sounds like a very broken image, which should be fixed by Ubuntu.

Good you figured out a fix!
0
sunseAuthor Commented:
Thanks.  What is Launchpad?
0
AlanConsultantCommented:
Hi Sunse,

It is where you can report a bug in Ubuntu:

https://bugs.launchpad.net/ubuntu/+filebug


It would be great if you can do that, to help others that may have the same issue.

Thanks,

Alan.
0
sunseAuthor Commented:
It is a proxy problem.  Everything works fine when I work at home.
0
sunseAuthor Commented:
This is the command that fixed the problem
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.