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

 

 

 

[Solved] Problems with update, after installation.

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
kaos
Posts: 12
Joined: 2020-02-08 12:04
Location: USA

[Solved] Problems with update, after installation.

#1 Post by kaos »

Hi,

I installed the system today, something is wrong but i don’t know what it is, if you need more information please let me know:

Code: Select all

 


root@kaos:/home/kaos# uname -a
Linux kaos 5.4.0-3-amd64 #1 SMP Debian 5.4.13-1 (2020-01-19) x86_64 GNU/Linux
root@kaos:/home/kaos# 

  GNU nano 4.7                                            /etc/apt/sources.list                                                        


# deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20200203-04:07]/ bullseye contrib main  

# deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20200203-04:07]/ bullseye contrib main  

deb http://deb.debian.org/debian/ bullseye main 
# deb-src http://deb.debian.org/debian/ bullseye main 

deb http://security.debian.org/debian-security/ bullseye-security main contrib 
# deb-src http://security.debian.org/debian-security/ bullseye-security main contrib 


root@kaos:/home/kaos# LANG=C apt update && apt full-upgrade
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security bullseye-security InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Calculando la actualización... Hecho
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
root@kaos:/home/kaos# 

root@kaos:/home/kaos# LANG=C apt full-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.
root@kaos:/home/kaos# 


BUT, when i go to apply ‘reboot’, it can’t find the command:

root@kaos:/home/kaos# reboot
bash: reboot: orden no encontrada
root@kaos:/home/kaos# LANG=C reboot
bash: reboot: orden no encontrada
root@kaos:/home/kaos# 

 
Of course i restarted the system later but i’m not able to do it by the terminal, there are packages too that i’m not able to get.

Thanks in advance for any commentary.
Last edited by kaos on 2020-02-16 13:35, edited 5 times in total.
Quad Core Intel Core i5-8265U
Dell Inspiron 3583
UEFI
Buster/Xfce4

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problems with update by terminal after installation.

#2 Post by Head_on_a_Stick »

http://forums.debian.net/viewtopic.php?f=16&t=142973

See also https://www.debian.org/doc/manuals/debi ... .html#s3.1 & https://www.debian.org/security/faq#testing — the development branches are not meant for general use and are not fit for n00bs.

EDIT: to reboot without root privileges use

Code: Select all

systemctl reboot
Or just call the full path:

Code: Select all

/sbin/reboot
^ That's symlinked to /bin/systemctl
deadbang

User avatar
kaos
Posts: 12
Joined: 2020-02-08 12:04
Location: USA

Re: Problems with update by terminal after installation.

#3 Post by kaos »

Hi, I have been looking at Debian site ...

There are many branches, the stables and not stables, using diferents names, i need to know which one is the one for 'general use', as you said, but with the more updated repos, and if you can place here the iso link, the place is very confused to me ... :mrgreen:

Thanks for your recomendation in advanced.
Quad Core Intel Core i5-8265U
Dell Inspiron 3583
UEFI
Buster/Xfce4

User avatar
kaos
Posts: 12
Joined: 2020-02-08 12:04
Location: USA

Re: Problems with update by terminal after installation.

#4 Post by kaos »

Hi,

Finally i found one called 'buster', after change the sources list (according to a tutorial) and update and reboot the system i have now a new problem:

Code: Select all

kaos@debian:~$ sudo apt update && apt full-upgrade
[sudo] password for kaos: 
kaos is not in the sudoers file.  This incident will be reported.
kaos@debian:~$ su -
Contraseña: 
root@debian:~# sudo apt update && apt full-upgrade
root is not in the sudoers file.  This incident will be reported.
root@debian:~# exit
cerrar sesión
kaos@debian:~$ su
Contraseña: 
root@debian:/home/kaos# sudo apt update && apt full-upgrade
root is not in the sudoers file.  This incident will be reported.
root@debian:/home/kaos# 
Thanks.
Quad Core Intel Core i5-8265U
Dell Inspiron 3583
UEFI
Buster/Xfce4

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problems with update by terminal after installation.

#5 Post by Head_on_a_Stick »

Root doesn't need to use sudo. To allow sudo for your normal user see the relevant Debian wiki page.

And you need to call sudo again after &&.
deadbang

User avatar
sunrat
Administrator
Administrator
Posts: 6474
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 474 times

Re: Problems with update by terminal after installation.

#6 Post by sunrat »

Head_on_a_Stick wrote:Root doesn't need to use sudo. To allow sudo for your normal user see the relevant Debian wiki page.

And you need to call sudo again after &&.
To ram that point home, no-one needs to use sudo. All those apt commands will work if you just leave sudo out of the commands completely once you are logged in as root. You can't use both together.
sudo is to elevate a user to root level to run admin commands. It's original purpose was to restrict which commands users can run with admin permissions, but Ubuntu changed that to allow users to run all commands as admin with sudo. Debian is not Ubuntu but you can use sudo if you want. Personally I don't. Read the wiki if you want sudo.
Also sudo will only run one command at a time. If you want to run multiple consecutive commands you have to call sudo for each one. Easier to just log in as root in that case.

@HOAS - not wearing hazing hat today? :mrgreen:
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
kaos
Posts: 12
Joined: 2020-02-08 12:04
Location: USA

Re: Problems with update by terminal after installation.

#7 Post by kaos »

Anything is fine with me i just want to run an updated system :D

Thank you all!.
Quad Core Intel Core i5-8265U
Dell Inspiron 3583
UEFI
Buster/Xfce4

Post Reply