LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu 18.04. Can't get access to repositories. (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-18-04-cant-get-access-to-repositories-4175630540/)

denis_1982 05-26-2018 02:58 PM

Ubuntu 18.04. Can't get access to repositories.
 
1 Attachment(s)
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?

ChuangTzu 05-26-2018 03:15 PM

Quote:

Originally Posted by denis_1982 (Post 5859736)
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?

hydrurga 05-27-2018 08:24 AM

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.

denis_1982 05-30-2018 05:31 AM

1 Attachment(s)
Quote:

Originally Posted by ChuangTzu (Post 5859746)
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)]

hydrurga 05-30-2018 05:49 AM

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?

denis_1982 05-30-2018 06:16 AM

Quote:

Originally Posted by hydrurga (Post 5861236)
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.

hydrurga 05-30-2018 06:26 AM

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.

ondoho 05-31-2018 11:40 PM

Quote:

Originally Posted by denis_1982 (Post 5861231)
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...)

denis_1982 06-06-2018 10:02 AM

Quote:

Originally Posted by hydrurga (Post 5861244)
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.

denis_1982 06-06-2018 10:05 AM

Quote:

Originally Posted by ondoho (Post 5862031)
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.

hydrurga 06-06-2018 05:27 PM

Can you please run another apt update to see what it gives.


All times are GMT -5. The time now is 07:49 AM.