In The name of God
Hello
I'll be Thankfull if you guide me :
I have a harddisk from ,for example, system 1 ,That debian is installed on it.
I added it on another system (for example system 2) ,and We used ubuntu live cd to boot system 2 .
I want to install some packages on debian ,therefore i used chroot .
Now When i use command "apt-get -f install" it gives me these errors :
Code:
ubuntu:/# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 172 not upgraded.
5 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up linux-image-2.6.18-6-486 (2.6.18.dfsg.1-22etch2) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
The link /initrd.img is a dangling linkto /boot/initrd.img-2.6.18-4-486
The link /vmlinuz is a dangling linkto /boot/vmlinuz-2.6.18-4-486
Running postinst hook script /sbin/update-grub.
You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub instead!
Searching for GRUB installation directory ...
No GRUB directory found.
To create a template run 'mkdir /boot/grub' first.
To install grub, install it manually or try the 'grub-install' command.
### Warning, grub-install is used to change your MBR. ###
User postinst hook script [/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.18-6-486 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-2.6-486:
linux-image-2.6-486 depends on linux-image-2.6.18-6-486; however:
Package linux-image-2.6.18-6-486 is not configured yet.
dpkg: error processing linux-image-2.6-486 (--configure):
dependency problems - leaving unconfigured
Setting up nvidia-kernel-common (20051028+1) ...
dpkg: dependency problems prevent configuration of nvidia-kernel-legacy-2.6.18-6-486:
nvidia-kernel-legacy-2.6.18-6-486 depends on linux-image-2.6.18-6-486; however:
Package linux-image-2.6.18-6-486 is not configured yet.
dpkg: error processing nvidia-kernel-legacy-2.6.18-6-486 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-kernel-legacy-2.6-486:
nvidia-kernel-legacy-2.6-486 depends on nvidia-kernel-legacy-2.6.18-6-486; however:
Package nvidia-kernel-legacy-2.6.18-6-486 is not configured yet.
nvidia-kernel-legacy-2.6-486 depends on linux-image-2.6-486; however:
Package linux-image-2.6-486 is not configured yet.
dpkg: error processing nvidia-kernel-legacy-2.6-486 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-2.6.18-6-486
linux-image-2.6-486
nvidia-kernel-legacy-2.6.18-6-486
nvidia-kernel-legacy-2.6-486
E: Sub-process /usr/bin/dpkg returned an error code (1)
regards dehqan