LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-24-2020, 02:49 PM   #16
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 288
Blog Entries: 1

Rep: Reputation: 53

balenaEtcher just works, though there is always dd as hazel says. Etcher is easier with a GUI, dd is faster (maybe - can't say I notice the difference with modern hardware), but you gotta get the command line right.
 
1 members found this post helpful.
Old 05-24-2020, 02:56 PM   #17
binkyd
Member
 
Registered: Oct 2016
Posts: 176

Rep: Reputation: 21
I've recently had success making bootable USB from a 5.4 GB iso with Gnome Disks.
To get passed the 4 GB thing it lets you format to exFAT and does the copy for you.
 
1 members found this post helpful.
Old 05-24-2020, 04:26 PM   #18
Trent29
Member
 
Registered: Dec 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
Roken, balenaEtcher wouldn't install properly on my computer. When I ran it for the 1st time after install, I got a gray box that is completely non-functional; settings, back button, none of them work - when I click on settings, nothing happens at all. Rebooting, connecting to internet did nothing. Have you tried installing this lately? It just doesn't do anything.

So I guess I'll try win32 disk imager. Are there any other installers that forum members have actually successfully used themselves to install Debian 10?

It's probably not possible to try Gnome Disks on Windows, right?

Last edited by Trent29; 05-24-2020 at 04:30 PM. Reason: Didn't see 2 new responses prior to my reply
 
Old 05-24-2020, 07:47 PM   #19
Trent29
Member
 
Registered: Dec 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
Thumbs down

win32diskimager didn't work either. It seems mainly to be for .img files, not .iso. win32diskimager installed itself and started OK (unlike balenaEtcher), but when I clicked on write, I got error message saying I didn't have permission to access the 32 GB USB, which was NTFS reformatted and completely empty.
 
Old 05-24-2020, 08:59 PM   #20
quickbreakfast
Member
 
Registered: Oct 2015
Posts: 121

Rep: Reputation: Disabled
Quote:
Originally Posted by Trent29 View Post
Are there any other installers that forum members have actually successfully used themselves to install Debian 10?
Some years ago, when I had a hard drive fail, I used pen drive linux

https://www.pendrivelinux.com/

on a windoze machine to create a linux iso (can't remember now which distro) from which to boot into Linux.

Then I used dd to create, from my external storage, an iso of the distro I had been using.

Therefore I suggest you use pend drive linux to create a Lucid Puppy iso to md5sum (check) your download of Debian 10 is not corrupt.

If it is not corrupt, use the Puppy to create, on a different usb, a Debian 10 iso.

Sure it is the long way round, but I'd be surprised if it did not work for you.
 
1 members found this post helpful.
Old 05-24-2020, 09:21 PM   #21
binkyd
Member
 
Registered: Oct 2016
Posts: 176

Rep: Reputation: 21
Couldn't figure out why I couldn't get "apt" to work.

Forgot this is a Manjaro box; the other one has "apt" on it

 
1 members found this post helpful.
Old 05-25-2020, 12:24 AM   #22
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 288
Blog Entries: 1

Rep: Reputation: 53
Yep - you need to make sure the package manager you are using is actually used on the distro. Manjaro is Arch based, so uses pacman. Debian based distros use apt.
 
1 members found this post helpful.
Old 05-25-2020, 03:40 AM   #23
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,342
Blog Entries: 11

Rep: Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460
Actually, on second thoughts, I wouldn't recommend dd for a newbie. It's extremely powerful and therefore potentially dangerous. It copies exactly from a specified input file/device to a specified output one, and if you are using device files and get them the wrong way round, you could overwrite your root partition. Specialist software is safer.
 
1 members found this post helpful.
Old 05-25-2020, 08:54 AM   #24
shruggy
Member
 
Registered: Mar 2020
Posts: 939

Rep: Reputation: Disabled
Well, Ubuntu website recommends using Rufus to prepare a bootable USB stick. I suppose Debian installation media should be similar. And Debian CD FAQ mentions win32diskimager.

But this differs from distro to distro. E.g. CentOS Wiki explicitly advises against using Rufus because you need to set right options for it to work. A remarkably simple tool I succesfully used to make installation media for CentOS 8 that they don't mention is ROSA ImageWriter.

Last edited by shruggy; 05-26-2020 at 01:42 AM.
 
2 members found this post helpful.
Old 05-25-2020, 12:03 PM   #25
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,057
Blog Entries: 1

Rep: Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864Reputation: 864
There's older ways to manage packages.

$ sudo tasksel

That one allows you to choose desktop / server / or whatever intended use.

$ sudo dselect

That one works like apt, but with an ncurses style front-end. But those might not be installed yet. I normally use dselect to populate available, which has perks. The first menu in dselect lets you select a "source". Although you might need to know the URL to a source in the absence of optical media.

$ sudo dselect update
$ sudo dselect upgrade

My sources.list file:
Code:
deb http://security.debian.org             stable/updates main contrib non-free
deb http://httpredir.debian.org/debian     stable         main contrib non-free
deb http://httpredir.debian.org/debian     stable-updates main contrib non-free
deb-src http://httpredir.debian.org/debian stable         main contrib non-free
deb-src http://httpredir.debian.org/debian stable-updates main contrib non-free
 
1 members found this post helpful.
Old 05-25-2020, 03:55 PM   #26
Roken
Member
 
Registered: Oct 2011
Location: Warrington, UK
Distribution: Arch local, Debian on VPS, several RPIs.
Posts: 288
Blog Entries: 1

Rep: Reputation: 53
The last two replies are fine for Debian based distros. Turns out, the OP was NOT about a Debian base, and so are of no assistance at all.

I appreciate the willingness to help, but it's important to recognise that this is a Linux board, and not a Debian or derivatives board. What works on Debian will not, at a package manager base, work on other base distros (Arch, RedHat, Suse etc.)
 
1 members found this post helpful.
Old 05-25-2020, 03:57 PM   #27
shruggy
Member
 
Registered: Mar 2020
Posts: 939

Rep: Reputation: Disabled
@Shadow_7. IIRC, synaptic, aptitude, all the *-tasks metapackages and many other metapackages depend on tasksel, so chances are that it's installed already.

OTOH, dselect rarely gets installed nowadays. Don't get me wrong: I love it and believe it still has its uses, but I would never recommend dselect to a newbie.

Alone the difference between /var/lib/dpkg/available and /var/lib/apt/lists/*Packages is enough to drive anybody nuts. IIRC, apt-get update always leaves available untouched, but (at least some versions of) aptitude update made it a copy of apt-cache dumpavail, thus rendering all your selection work carefully laid via dselect and/or dpkg --merge-avail completely futile. The same is true for dselect update if apt is configured as dselect's access method (which it is, by default).

And using dselect on the whole Debian repository rather than on a carefully selected subset of packages is just insane. IMO, aptitude and synaptic can handle this much better.

Besides, aptitude's search facilities are really top-notch.

BTW, the first thing I do after installing dselect usually is
Code:
echo expert|sudo tee -a /etc/dpkg/dselect.cfg
because its help screens are so annoying. But then again, I can find my way around dselect without them. Not so sure about newbies though.

So my recommendation to new Debian users: aptitude as an ncurses (TUI) front-end and synaptic as a GUI front-end to APT.

Last edited by shruggy; 05-25-2020 at 04:00 PM.
 
1 members found this post helpful.
Old 05-25-2020, 06:13 PM   #28
Trent29
Member
 
Registered: Dec 2018
Posts: 33

Original Poster
Rep: Reputation: Disabled
First of all, Rufus worked great as the USB installer on the latest version of Windows 10. And for the record, using the .iso option inside Rufus worked; didn't need to try the dd option. Thanks shruggy.

So I did a complete reinstall of Debian 10, choosing the beginner default choices in the graphic installer with a great internet connection. I DEFINITELY chose a mirror during install. The first command I typed in was apt-get update. So now I'm back to my original problem - it still doesn't work. This is now a fresh install with no accidental newbie contamination. I tried apt-get update both as a regular user and as root.

So now I'm trying to apply the suggestions of shruggy, Quick Breakfast, HappyTux and hazel way back at the beginning of this thread to modify the sources.list file and Debian absolutely won't let me log in as root or give me root access, even though I set it up with a password during the install. Please take a look below and tell me what I'm doing wrong. What can I do to get access to the sources.list file as root? Please tell me there's a way for me to log in as root and modify the sources.list file via GUI and not CLI.


Also, a few questions:

Why doesn't Debian recognize user as a sudoer?
Why didn't Debian follow my usermod command to add user as a sudoer?
Why didn't Debian recognize my user iwconfig command?

Code:
user@debian:~$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
user@debian:~$ sudo apt-get update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for user: 
user is not in the sudoers file.  This incident will be reported.
user@debian:~$ sudo su
[sudo] password for user: 
user is not in the sudoers file.  This incident will be reported.
user@debian:/$ su
Password: 
root@debian:/# usermod -a -G sudo user
bash: usermod: command not found
root@debian:/# iwconfig
bash: iwconfig: command not found
root@debian:/# su user
user@debian:/$ iwconfig
bash: iwconfig: command not found

root@debian:/# sudo apt-get update
Ign:1 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster InRelease
Err:2 cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://deb.debian.org/debian buster InRelease
Hit:4 http://deb.debian.org/debian buster-updates InRelease
Hit:5 http://security.debian.org/debian-security buster/updates InRelease
Reading package lists... Done                                    
E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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.
root@debian:/#
 
Old 05-25-2020, 07:20 PM   #29
quickbreakfast
Member
 
Registered: Oct 2015
Posts: 121

Rep: Reputation: Disabled
Quote:
Originally Posted by Trent29 View Post
Also, a few questions:

Why doesn't Debian recognize user as a sudoer?
Note I am not a Debian user, so I can not be sure, but possibly because the distro uses su not sudo.

I hope you noticed that when you used su your electronic marvel accepted the command. Therefore I'd use su from now on.

Quote:
Why didn't Debian recognize my user iwconfig command?
Before trying to modify your net connection. Try pinging any address to see whether you're connected to the net.

Code:
 ping -c3 www.gentoo.org
Your ectronic marvel will soon tell you how many packets have been received.

If there is zero percentage loss, your connected.

But the distro is looking for the updates in the wrong place for the upodates and it's telling you exactly that.

Code:
root@debian:/# sudo apt-get update

  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
which you don't want.
Code:
 E: The repository 'cdrom://[Debian GNU/Linux 10.4.0 _Buster_ - Official amd64 DVD Binary-1 20200509-10:26] buster 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.
So, as stated earlier, edit your sources list.
 
2 members found this post helpful.
Old 05-26-2020, 04:26 AM   #30
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,342
Blog Entries: 11

Rep: Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460Reputation: 2460
Usermod doesn't directly put you into the sudoers file. What happens in Debian distros is that a sudo group is predefined in sudoers with full sudo rights, and you can use usermod to become a member of that group.

However, you need to understand that your group membership at any moment is the group membership you had when you logged in. It doesn't get automatically updated when you use usermod to add yourself to groups. So you need either to log out and log in again or to use su (your_name)- at a terminal to make the change effective. The minus sign in the command ensures that the new shell you create is a login shell.

Last edited by hazel; 05-26-2020 at 05:08 AM.
 
2 members found this post helpful.
  


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
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 07:47 AM
Apt-get update and apt-get upgrade rapattack Debian 32 01-28-2008 09:04 AM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 PM.

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