Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Stretch - sudo package and more

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Stretch - sudo package and more

#1 Post by ElstonGunnn »

Hello everyone. I'm a beginner in Debian. I want to start using it but I can't finish the installation.

I downloaded the non-free iso and did everything as specified in debian-website and other websites too, but then I get an error and I read that I had to install the sudo package, so this is what I did (In red I write the errors):

Code: Select all

su -
(password)
apt-get update
apt-get install sudo
Reading package lists... Done
Building state information... Done
E: Unable to locate package sudo


So I installed the missing package sources:

Code: Select all

vi /etc/apt/sources.list
And I wrote there:

Code: Select all

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/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
like it says here: https://wiki.debian.org/SourcesList

I also did this:

Code: Select all

vi /etc/sudoers
and added the lines:

Code: Select all

root ALL=(ALL:ALL) ALL
juan ALL=(ALL:ALL) ALL
(juan is my username)

and then, when I wrote again:

Code: Select all

apt-get update
it says:

Err:1 http://deb.debian.org/debian stretch InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://security.debian.org stretch/updates InRelease
Temporary failure resolving 'security.debian.org'
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/stre ... /InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/dists/stretc ... /InRelease Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead


So I read I have to do this: https://askubuntu.com/questions/91543/a ... ving-error

but, using this DNS: https://public-dns.info/nameserver/ar.html it didn't work.

I don't know what else can I do. I really want to use Debian, but I've been 2 days fighting with this.
I hope you can help me.

Thanks!

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Stretch - sudo package and more

#2 Post by kedaha »

Hello,
It looks to me that the network hasn't been configured because your /etc/apt/sources.list is OK.
By the way, where did you read that you have to use sudo?
Similarly you didn't need to use the non-free iso because any necessary non-free firmware can be loaded either during installation or afterwards from an external medium like a usb pendrive.
But to solve your problem.
Have you installed only a basic system or a full desktop environment?
If you need help with installing firmware, then it'll be necessary to post details of your hardware here. Wired, wireless? What?
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#3 Post by ElstonGunnn »

Firstly, I tried to install the free firmware version but it said that the package iwlwifi wasn't available (or something like that). That's why I tried to install the non-free firmware version, but it also said that the iwlwifi package wasn't available.

So, I don't have the iwlwifi package. How can I install it? I tried what internet says: https://wiki.debian.org/iwlwifi and wrote

Code: Select all

deb http://httpredir.debian.org/debian/ stretch main contrib non-free
in /etc/apt/sources.list , but it gives me an error when I write

Code: Select all

apt-get update
: Err:1 http://httpredir.debian.org/debian/ stretch InRelease
Temporary failure resolving 'httpedir.debian.org'

My connection is via wifi but I can connect it through Ethernet.

My computer is a Samsung Series 5 Ultra, with i5, 4GB of RAM, 500GB of HDD...

Thanks!

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Stretch - sudo package and more

#4 Post by arochester »

My connection is via wifi but I can connect it through Ethernet.
it also said that the iwlwifi package wasn't available.
Connect TEMPORARILY by ethernet.
Become Root by issuing in a Terminal

Code: Select all

su
Then do

Code: Select all

apt update
then

Code: Select all

apt upgrade
then

Code: Select all

apt install lwlwifi
then reboot

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#5 Post by ElstonGunnn »

No, it doesn't work.

First, I became root and then put

Code: Select all

apt update
and said the same errors of the connection that I wrote before.

Then, I commented all the /etc/apt/sources.list lines and did:

Code: Select all

apt update
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date

Code: Select all

apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded

Code: Select all

apt install lwlwifi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lwlwifi

Code: Select all

apt install iwlwifi
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iwlwifi



When I connect via Ethernet, do I have to reboot the computer?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Stretch - sudo package and more

#6 Post by arochester »

So I read I have to do this: https://askubuntu.com/questions/91543/a ... ving-error

but, using this DNS: https://public-dns.info/nameserver/ar.html it didn't work.
So what DNS are you using? Ubuntu is similar to Debian ---but it is different.

Askubuntu suggests 8.8.8.8 which is the Google DNS, but what does your system use now?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Stretch - sudo package and more

#7 Post by kedaha »

My eyesight isn't what it was but isn't the package
firmware-iwlwifi
and not just
lwlwifi?
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#8 Post by ElstonGunnn »

kedaha wrote:My eyesight isn't what it was but isn't the package
firmware-iwlwifi
and not just
lwlwifi?
I tried both and no one worked

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#9 Post by ElstonGunnn »

arochester wrote:
So I read I have to do this: https://askubuntu.com/questions/91543/a ... ving-error

but, using this DNS: https://public-dns.info/nameserver/ar.html it didn't work.
So what DNS are you using? Ubuntu is similar to Debian ---but it is different.

Askubuntu suggests 8.8.8.8 which is the Google DNS, but what does your system use now?
I tried the google one (8.8.8.8) and the ones that I posted in the main post

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Stretch - sudo package and more

#10 Post by arochester »

My eyesight isn't what it was but isn't the package
firmware-iwlwifi
YES!!!

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#11 Post by ElstonGunnn »

arochester wrote:
My eyesight isn't what it was but isn't the package
firmware-iwlwifi
YES!!!
But that's not the problem. firmware-iwlwifi and iwlwifi don't work.

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: Stretch - sudo package and more

#12 Post by Wheelerof4te »

From what I can tell, you don't have an internet connection. Connect the ethernet cable, and see if you have wired connection enabled in the status tray. You haven't told us which, if any, Desktop environment you have. If you get everything to work, just install firmware-iwlwifi package as root. After that, you can either reboot or type (as root) in terminal:

Code: Select all

modprobe iwlwifi
to get your wifi working.
If this doesn't help, then the problem might be with the installation or something you did before.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#13 Post by ElstonGunnn »

Well, I restarted the computer because I don't know what else can I do. I choose the Debian partition and this appeared:

http://imgur.com/a/A3HwL

I didn't choose the "advanced options" option (when I boot the computer I have 3 options: Debian, Advanced options (Debian) and Windows 10). I think I should choose the "advanced options" option.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Stretch - sudo package and more

#14 Post by kedaha »

Looks like you're having a hard time with this.
The output you've posted doesn't have anything to do with the topic posted here as can be seen from doing a search based on key words from your dmesg log.
login exception Emask SErr action frozen failed command: READ DMA tag timeout status DRDY
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#15 Post by ElstonGunnn »

kedaha wrote:Looks like you're having a hard time with this.
The output you've posted doesn't have anything to do with the topic posted here as can be seen from doing a search based on key words from your dmesg log.
login exception Emask SErr action frozen failed command: READ DMA tag timeout status DRDY
Yes, I think I'm going to Ubuntu. I can't do this

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Stretch - sudo package and more

#16 Post by kedaha »

You've said you "can't finish the installation" of the non-free iso. What iso is it? How far did you get with it? Did you just install a basic system or did you install a full-blown desktop? It's also possible the unofficial image you downloaded was corrupt. Maybe it'd be better or simpler just to download an official network install ("netinst.iso") and also copy the firmware-iwlwifi package to a pendrive and insert it in a USB port so that the the debian-installer can automatically configure the network and apt for you. By the way, can't you just use a wired connection for installation?
Alternatively, if you don't want to give up yet on your present installation yet, then you might like to try and install the firmware exactly as I posted in reply to timshel's topic here, although he chose to reinstall.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: Stretch - sudo package and more

#17 Post by dasein »

Good idea. Debian isn't newbie-friendly and doesn't try to be.

When/if you run into trouble over there, do everyone a favor and don't post 3 Mpx screen shots. They take way too long to load and diminish folks' willingness to help you.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#18 Post by ElstonGunnn »

kedaha wrote:You've said you "can't finish the installation" of the non-free iso. What iso is it? How far did you get with it? Did you just install a basic system or did you install a full-blown desktop? It's also possible the unofficial image you downloaded was corrupt. Maybe it'd be better or simpler just to download an official network install ("netinst.iso") and also copy the firmware-iwlwifi package to a pendrive and insert it in a USB port so that the the debian-installer can automatically configure the network and apt for you. By the way, can't you just use a wired connection for installation?
Alternatively, if you don't want to give up yet on your present installation yet, then you might like to try and install the firmware exactly as I posted in reply to timshel's topic here, although he chose to reinstall.
I downloaded the non-free version from here:
https://cdimage.debian.org/cdimage/unof ... -firmware/

I choose "9.1.0+nonfree/". Then, "amd64/". Then, "iso-cd/". And I downloaded the archive "firmware-9.1.0-amd64-netinst.iso". But I didn't download the other archives: MD5SUMS, MD5SUMS.sign, etc.

Is that ok?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Stretch - sudo package and more

#19 Post by kedaha »

Someone else will advise; I'm not familiar with the non-free isos but I would've thought that after editing /etc/apt/sources.list to include the non-free and contrib components, the firmware would be installable after running apt-get update.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

ElstonGunnn
Posts: 11
Joined: 2017-08-10 04:10

Re: Stretch - sudo package and more

#20 Post by ElstonGunnn »

kedaha wrote:Someone else will advise; I'm not familiar with the non-free isos but I would've thought that after editing /etc/apt/sources.list to include the non-free and contrib components, the firmware would be installable after running apt-get update.
But when I do that is when I have the connection errors :?

Post Reply