LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-26-2018, 02:58 PM   #1
denis_1982
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
Ubuntu 18.04. Can't get access to repositories.


Hello.

I've installed Ubuntu 18.04 LTS and completed network settings. But network symbol at the top right corner looks like an '?'. I have internet access, but i don't have access to default repositories.

Can someone help?
Attached Thumbnails
Click image for larger version

Name:	DSC_1105.jpg
Views:	16
Size:	254.0 KB
ID:	27751  

Last edited by denis_1982; 05-26-2018 at 03:01 PM.
 
Old 05-26-2018, 03:15 PM   #2
ChuangTzu
Member
 
Registered: May 2015
Location: Where ever needed
Distribution: Slackware/Salix, Devuan, FreeBSD
Posts: 981

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by denis_1982 View Post
Hello.

I've installed Ubuntu 18.04 LTS and completed network settings. But network symbol at the top right corner looks like an '?'. I have internet access, but i don't have access to default repositories.

Can someone help?
Open a terminal and:

Code:
sudo apt update
What does it say/show?
 
1 members found this post helpful.
Old 05-27-2018, 08:24 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,904
Blog Entries: 2

Rep: Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886
It appears that the question mark is a known bug: https://askubuntu.com/questions/1029...d-of-wifi-icon

That shouldn't affect your software sources though, unless you really do have an intermittent wifi problem that's enough to put your package manager off its stride. It will be interesting to see what output you get from the command that ChuangTzu suggested above.
 
Old 05-30-2018, 05:31 AM   #4
denis_1982
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ChuangTzu View Post
Open a terminal and:

Code:
sudo apt update
What does it say/show?

ChuangTzu
hydrurga

Thanks for quick respond. I've deleted Ubintu and installed Debian 9.4.0. And get the same situation. I have internet access and i don't have accsess to reps.

sudo command gets me this messages:

root@pc:/home/denis/work# sudo apt update
Ign:1 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-1 20180310-11:55] stretch InRelease
Ign:2 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-2 20180310-11:55] stretch InRelease
Ign:3 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-3 20180310-11:55] stretch InRelease
Err:4 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-1 20180310-11:55] stretch Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:5 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-2 20180310-11:55] stretch Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:6 cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-3 20180310-11:55] stretch Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
0% [Connecting to prod.debian.map.fastly.net (151.101.36.204)]
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	5
Size:	105.1 KB
ID:	27778  
 
Old 05-30-2018, 05:49 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,904
Blog Entries: 2

Rep: Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886
Ok, let's have a look at your software sources.

Code:
cat /etc/apt/sources.list{,.d/*}
To readers of this thread in the future: note that although this is a Ubuntu subforum, and despite some commonality, this thread now refers to Debian software sources.

To the OP: why were you so quick to ditch Ubuntu? Was it because of the software sources problem?
 
Old 05-30-2018, 06:16 AM   #6
denis_1982
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Ok, let's have a look at your software sources.

Code:
cat /etc/apt/sources.list{,.d/*}
To readers of this thread in the future: note that although this is a Ubuntu subforum, and despite some commonality, this thread now refers to Debian software sources.

To the OP: why were you so quick to ditch Ubuntu? Was it because of the software sources problem?

Here is my sources.list file:
more /etc/apt/sources.list

#

# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-1 20180310-11:55]/ stretch contrib main

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-1 20180310-11:55]/ stretch contrib main

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-2 20180310-11:55]/ stretch contrib main

deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official i386 DVD Binary-3 20180310-11:55]/ stretch contrib main

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ stretch-updates main contrib
# deb-src http://deb.debian.org/debian/ stretch-updates main contrib


yea... am i right i should move 'deb http...' and 'deb-src...' strings at the top of the file?


Directory /etc/apt/sources.list.d/ is empty.


>> To the OP: why were you so quick to ditch Ubuntu? Was it because of the software sources problem?
No.. of course not. It was some miserable issue that i moved to Debian. I use Ubuntu at my home computer with no any problems. I think both Ububtu and Debian are great distros.
 
Old 05-30-2018, 06:26 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,904
Blog Entries: 2

Rep: Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886
From https://wiki.debian.org/SourcesList:

Quote:
Below is an example of a sources.list for Debian 9/Stretch.

Code:
deb http://deb.debian.org/debian stretch main
deb-src http://deb.debian.org/debian stretch main

deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main

deb http://security.debian.org/debian-security/ stretch/updates main
deb-src http://security.debian.org/debian-security/ stretch/updates main
If you also want the contrib and non-free components, add contrib non-free after main:

Code:
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
Also, comment out those cdrom entries unless you're still using an optical media device as a repository.
 
Old 05-31-2018, 11:40 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,396
Blog Entries: 7

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Quote:
Originally Posted by denis_1982 View Post
root@pc:/home/denis/work# sudo apt update
you need only either su or sudo.
this is overkill.

(the screenshot shows that op su'd to root first, then used sudo apt...)
 
Old 06-06-2018, 10:02 AM   #9
denis_1982
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
From https://wiki.debian.org/SourcesList:



Also, comment out those cdrom entries unless you're still using an optical media device as a repository.

This is current version of my sources:
#
# Repositories links
#

deb http://deb.debian.org/debian/ stretch main
deb-src http://deb.debian.org/debian/ stretch main

deb http://deb.debian.org/debian/ stretch-updates main
deb-src http://deb.debian.org/debian/ stretch-updates main

deb http://security.debian.org/debian-security/ stretch/updates main
deb-src http://security.debian.org/debian-security/ stretch/updates main


But problem is still exist. Maybe it connection issue, not reps. When I put address: 'http://deb.debian.org/debian/' in to the web browser it works fine, it shows me web page with debian folders.
 
Old 06-06-2018, 10:05 AM   #10
denis_1982
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
you need only either su or sudo.
this is overkill.

(the screenshot shows that op su'd to root first, then used sudo apt...)

I used (without sudo)
apt update && apt upgrate
under the root permissions... But I've got the same.

Last edited by denis_1982; 06-06-2018 at 10:06 AM.
 
Old 06-06-2018, 05:27 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,904
Blog Entries: 2

Rep: Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886Reputation: 1886
Can you please run another apt update to see what it gives.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access Breezy repositories Virp00 Ubuntu 11 06-16-2014 08:40 AM
[SOLVED] mepis8; can't access repositories littlejoe5 MEPIS 1 07-01-2009 02:16 PM
[SOLVED] Cannot access mepis repositories - can access nearly all others. littlejoe5 MEPIS 5 10-22-2008 06:42 AM
unable to access repositories betula Linux - Desktop 7 08-20-2008 02:04 PM
Trying to access repositories from behind proxy perryub Ubuntu 4 06-09-2006 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration