The officially official Devuan Forum!

You are not logged in.

#1 2018-05-29 17:38:19

keos
Member
Registered: 2017-06-16
Posts: 173  

Problems to update grub. [solved]

I need to install the grub at my new Devuan but something is wrong ...

root@kaos:/home/keos# sudo update-grub 
/usr/sbin/grub-mkconfig: 253: /usr/sbin/grub-mkconfig: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
root@kaos:/home/keos# 

i hope i didn't made a mistake during installing the system ...

Last edited by keos (2018-05-31 19:42:57)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#2 2018-05-29 17:50:51

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: Problems to update grub. [solved]

Sorry, i am not much help here but if you actually booted using grub that doesn't seem to make any sense. No idea what kind of mistake during install could cause this short of not installing grub at all.

Offline

#3 2018-05-29 18:03:12

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

Devuan jesiee is installed and i need to remove it from my pc, that is why i need the grub with Devuan ascii -- MXLinux is the other ...

Last edited by keos (2018-05-29 18:04:02)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#4 2018-05-29 19:45:10

emanym
Member
Registered: 2018-04-08
Posts: 35  

Re: Problems to update grub. [solved]

What happens when you type:

bofh@sybilla:~$ ls /boot/

From the error appears a /boot/grub/ direcory doesn't exist on your system...

Either a /boot/ partition is not mounted, or grub is not installed (as bootloader) on your system (only a grub package)...

Last edited by emanym (2018-05-29 19:56:41)

Offline

#5 2018-05-29 22:36:47

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: Problems to update grub. [solved]

You didn't click on the button that says 'Copy files' in the installer. (I'm sure of this - it's in your log.)

Boot into the new installation and run dpkg -i /grub-pc*
It will install the grub-pc package, ask you where to put the bootloader and create the config.

Offline

#6 2018-05-30 12:30:28

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

Hi everybody,

After dpkg -i /grub-pc* a windows opened  ... i pressed many times OK and «nothing happened» ... i allways have problems with graphics in this PC.

Captura_de_pantalla_2018-05-30_07-57-03.png

So after five mts waiting and seeing that nothing happened i went to the terminal and:

root@kaos:/home/keos# sudo update-grub
Generando un fichero de configuración de grub...
Encontrada imagen de linux: /boot/vmlinuz-4.9.0-6-amd64
Encontrada imagen de memoria inicial: /boot/initrd.img-4.9.0-6-amd64
Encontrado MX 17 Horizon (17) en /dev/sda1
Encontrado Devuan GNU/Linux 1 (jessie) en /dev/sda3
hecho
root@kaos:/home/keos#

reboot ... but the grub still there with Devuan jessie (is at the first partition) … Do i have to remove this Devuan?


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#7 2018-05-30 12:37:20

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: Problems to update grub. [solved]

Offtopic: Localized system messages are horrible for troubleshooting. My 5 word spanish knowledge doesn't give me the slightest clue of what's going on.

Offline

#8 2018-05-30 12:43:16

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

Sorry i forgot there is a trick for:

The grub-pc package is being upgraded. This menu allows you to select       
 │ which devices you'd like grub-install to be automatically run for, if       
 │ any.                                                                        
 │                                                                             
 │ Running grub-install automatically is recommended in most situations, to    
 │ prevent the installed GRUB core image from getting out of sync with GRUB    
 │ modules or grub.cfg.                                                        
 │                                                                             
 │ If you're unsure which drive is designated as boot drive by your BIOS,      
 │ it is often a good idea to install GRUB to all of them.                     
 │                                                                             
 │ Note: it is possible to install GRUB to partition boot records as well,     
 │ and some appropriate partitions are offered here. However, this forces      
 │ GRUB to use the blocklist mechanism, which makes it less reliable, and      
 │                                                                             
 │                                  <Ok>                               

i tried this too:

oot@kaos:/home/keos# LANG=C grub-install
Installing for i386-pc platform.
grub-install: error: install device isn't specified.
root@kaos:/home/keos#
root@kaos:/home/keos# ls /boot/
config-4.9.0-6-amd64  initrd.img-4.9.0-6-amd64	vmlinuz-4.9.0-6-amd64
grub		      System.map-4.9.0-6-amd64
root@kaos:/home/keos#

Do i have to remove this Devuan jessie?

Last edited by keos (2018-05-30 12:49:02)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#9 2018-05-30 12:46:24

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

keos, what you are missing is running this command while in ASCII: $ sudo grub-install /dev/sda

Then reboot and you'll see that grub will behave as expected.

---------------

P.S.: Running $ sudo update-grub in ASCII simply (re)generates a /boot/grub/grub.cfg file in your ASCII partition--it does not tell grub that now you want to start using ASCII's grub.cfg instead of the grub.cfg file in some other partition. The way you tell grub that you want it to use ASCII's grub.cfg is by running grub-install from within ASCII.

BTW, you only need sudo if you are at a user command prompt (the one ending with $). If you are already at a root prompt (the one ending with #) then you don't need sudo.

Last edited by GNUser (2018-05-30 13:18:09)

Offline

#10 2018-05-30 13:19:49

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

The new grub is already there but i have a new problem:

root@kaos:/home/keos# LANG=C apt-get update
Hit:1 http://pkgmaster.devuan.org/merged ascii InRelease
Hit:2 http://pkgmaster.devuan.org/merged ascii-updates InRelease               
Hit:3 http://pkgmaster.devuan.org/merged ascii-security InRelease              
Ign:4 http://kovacsoltvideo.hu/moonchildproductions ./ InRelease         
Hit:5 http://kovacsoltvideo.hu/moonchildproductions ./ Release
Reading package lists... Done                      
root@kaos:/home/keos# LANG=C apt-get upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. 
root@kaos:/home/keos#

But after dpkg --configure -a the old windows appears again:

The grub-pc package is being upgraded. This menu allows you to select       
 │ which devices you'd like grub-install to be automatically run for, if       
 │ any.                                                                        
 │                                                                             
 │ Running grub-install automatically is recommended in most situations, to    
 │ prevent the installed GRUB core image from getting out of sync with GRUB    
 │ modules or grub.cfg.                                                        
 │                                                                             
 │ If you're unsure which drive is designated as boot drive by your BIOS,      
 │ it is often a good idea to install GRUB to all of them.                     
 │                                                                             
 │ Note: it is possible to install GRUB to partition boot records as well,     
 │ and some appropriate partitions are offered here. However, this forces      
 │ GRUB to use the blocklist mechanism, which makes it less reliable, and      
 │                                                                             
 │                                  <Ok> 

devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#11 2018-05-30 13:24:45

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

Before troubleshooting the dpkg issue, let's try to get grub to work as you expect. What happens when you run $ sudo grub-install /dev/sda followed by a reboot? You should see a grub menu with ASCII listed at the top.

Last edited by GNUser (2018-05-30 13:30:43)

Offline

#12 2018-05-30 13:39:52

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

That's correct, the new grub menu with ASCII listed at the top is already there BUT when update ... again, the problem with dpkg --configure -a

i did twice reboot ...

Last edited by keos (2018-05-30 13:48:55)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#13 2018-05-30 13:52:49

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

Ok, so grub is working fine. I think the "problem" here is that dpkg is trying too hard to be helpful.

Please try running $ sudo dpkg --configure -a then answering dpkg's question about grub--in the list of "GRUB install devices" choose /dev/sda (as shown here). Allow dpkg to install grub to /dev/sda (even though you already did this manually, letting dpkg do it again won't hurt anything).

Now dpkg should be happy. Try running running $ sudo apt-get update and $ sudo apt-get upgrade again--hopefully the commands will not bother you with any errors.

Last edited by GNUser (2018-05-30 13:59:08)

Offline

#14 2018-05-30 14:22:11

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

The problem is that all what i got in this windows ... do not allow me to do nothing about configuration, there are not options, nothing i can do ...

Captura_de_pantalla_2018-05-30_10-18-29.png

Last edited by keos (2018-05-30 14:22:52)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#15 2018-05-30 14:25:16

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

Oh, I see. Compare your screenshot with the screenshot here. The text in your box gets cut off after "less reliable, and". Bizarre. The configuration options are probably there, you just can't see them.

I don't know enough about ncurses (the library used to create these kind of text boxes inside terminals) to help the box show up properly. I'd try one of two things:

1. Try running $ sudo dpkg --configure -a in a different terminal emulator or in a virtual console (e.g., after pressing Control + Alt + F2). Hopefully the box will display properly in a different environment.

-or-

2. In whatever terminal emulator you are using, when the box shows up try blindly choosing a location for grub using your keyboard arrows. After dpkg installs grub to somewhere (since you couldn't see), you can manually install grub to /dev/sda to make sure it is installed to the proper location.

Last edited by GNUser (2018-05-30 14:40:39)

Offline

#16 2018-05-30 14:41:03

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

But at the moment there is nothing that i can do at the terminal, no update, nothing because the problem with the windows (graphic config) that appear after sudo dpkg --configure -a

is it any way in which i can avoid this graphic at the terminal, another command diferent that sudo dpkg --configure -a or change someting at grub configuration?

I don't know what to do, i'm manipulated by this troubleshooting ...


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#17 2018-05-30 14:42:13

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

I made some edits to my last post (#15). Take a look at my two suggestions.

I agree that dpkg is being a bully here. However, in a Debian/Devuan system dpkg is king of the hill, so we need to satisfy it.

Last edited by GNUser (2018-05-30 15:45:03)

Offline

#18 2018-05-30 14:56:15

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

yes ... of course, i tried too Control + Alt + F2 but nothing happened.


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#19 2018-05-30 15:15:41

GNUser
Member
Registered: 2017-03-16
Posts: 561  

Re: Problems to update grub. [solved]

Sorry, keos, but I'm running out of ideas. Here are the things I'd try:

- increase your screen resolution so that hopefully all of the box shows up
- blindly answer the box's question (since you can't see all of the box)
- try the dpkg command in a different terminal emulator or in a virtual console, hoping all of the box shows up

Good luck. I'll keep an eye on the thread and will jump in again if I think I can help.

Offline

#20 2018-05-30 15:22:27

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: Problems to update grub. [solved]

If the problem is simply the text not fitting on the screen you could try:

DEBIAN_FRONTEND=readline dpkg --configure -a

This should force readline to be used instead of dialog for the configuration questions which might give you a possibility to actually select something.

Offline

#21 2018-05-30 16:49:57

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

root@kaos:/home/keos# LANG=C DEBIAN_FRONTEND=readline dpkg --configure -a
Setting up grub-pc (2.02~beta3-5) ...
Configuring grub-pc
-------------------

The grub-pc package is being upgraded. This menu allows you to select which 
devices you'd like grub-install to be automatically run for, if any.

Running grub-install automatically is recommended in most situations, to prevent
the installed GRUB core image from getting out of sync with GRUB modules or 
grub.cfg.

If you're unsure which drive is designated as boot drive by your BIOS, it is 
often a good idea to install GRUB to all of them.

Note: it is possible to install GRUB to partition boot records as well, and some
appropriate partitions are offered here. However, this forces GRUB to use the 
blocklist mechanism, which makes it less reliable, and therefore is not 
recommended.

 1. /dev/sda (640135 MB; TOSHIBA_MQ01ABD064)  2. - /dev/sda5 (100965 MB; /)

(Enter the items you want to select, separated by spaces.)

GRUB install devices:

You chose not to install GRUB to any devices. If you continue, the boot loader 
may not be properly configured, and when this computer next starts up it will 
use whatever was previously in the boot sector. If there is an earlier version 
of GRUB 2 in the boot sector, it may be unable to load modules or handle the 
current configuration file.

If you are already using a different boot loader and want to carry on doing so, 
or if this is a special environment where you do not need a boot loader, then 
you should continue anyway. Otherwise, you should install GRUB somewhere.

Continue without installing GRUB? [yes/no] y

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-6-amd64
Found initrd image: /boot/initrd.img-4.9.0-6-amd64
Found MX 17 Horizon (17) on /dev/sda1
Found Devuan GNU/Linux ascii/ceres on /dev/sda3
done
Processing triggers for man-db (2.7.6.1-2) ...
root@kaos:/home/keos# up-get update
bash: up-get: no se encontró la orden
root@kaos:/home/keos# apt-get update
Des:1 http://pkgmaster.devuan.org/merged ascii InRelease [22.2 kB]     
Ign:2 http://kovacsoltvideo.hu/moonchildproductions ./ InRelease
Obj:3 http://kovacsoltvideo.hu/moonchildproductions ./ Release                 
Des:4 http://pkgmaster.devuan.org/merged ascii-updates InRelease [22.2 kB]     
Des:5 http://pkgmaster.devuan.org/merged ascii-security InRelease [21.6 kB]
Descargados 66.0 kB en 5s (12.5 kB/s)                          
Leyendo lista de paquetes... Hecho
root@kaos:/home/keos# apt-get upgrade
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/keos#

And after reboot the system ...

root@kaos:/home/keos# apt-get update
Ign:1 http://kovacsoltvideo.hu/moonchildproductions ./ InRelease               
Obj:2 http://pkgmaster.devuan.org/merged ascii InRelease
Obj:3 http://pkgmaster.devuan.org/merged ascii-updates InRelease               
Obj:4 http://pkgmaster.devuan.org/merged ascii-security InRelease              
Obj:5 http://kovacsoltvideo.hu/moonchildproductions ./ Release
Leyendo lista de paquetes... Hecho
root@kaos:/home/keos# apt-get upgrade
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/keos#

Thanks again to all of you!!.


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#22 2018-05-30 18:04:48

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

i uninstalled Devuan jessie and now i have no grub at all, no access to anywhere -- iḿ using Partedmagic ...

I forgot to said that i tried to recover the grub from partedmagic with the application named grub-doctor but is not possible, i tried cup of things more update grub etc nothing ...

Last edited by keos (2018-05-30 18:11:00)


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#23 2018-05-30 18:39:12

keos
Member
Registered: 2017-06-16
Posts: 173  

Re: Problems to update grub. [solved]

i will start again everything, im going to reinstall, i think it is going to be much better ... Thanks.


devuan_ascii_2.0.0-rc_amd64_desktop-live.iso  [Xfce]

Graphics: AMD Radeon HD 7640G integrated graphics
GPU: AMD/ATI Trinity [Radeon HD 7640G]

Offline

#24 2018-05-30 18:40:06

golinux
Administrator
Registered: 2016-11-25
Posts: 3,137  

Re: Problems to update grub. [solved]

Hope everything goes well, keos.

Online

#25 2018-05-30 23:08:22

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: Problems to update grub. [solved]

After dpkg -i /grub-pc* a windows opened  ... i pressed many times OK and «nothing happened» ... i allways have problems with graphics in this PC.

When you get to that window that won't let you do anything, press TAB and it will highlight the 'OK'. Then you can press Enter and it will bring you to the next screen.

Use TAB or arrow keys to navigate in debconf screens like that one.
Use Space Bar to select or unselect items.

Offline

Board footer