Debian Configuration :: Apt Had A Blank Sources File And Grub Is Now Failing?
Mar 23, 2011
I'm hoping someone can help me. I upgraded my server from Lenny to Squeeze this afternoon following the release notes at http://www.debian.org I had no issues and everything is still running. I then installed Sqeeze via the Net Install disc into a virtual machine for some testing. Once the install was complete I found that apt was not working. It turned out the sources file was blank. I manually added the official repos and did an update. There were no new packages for installation.
Now, after a reboot, I get the Grub error:
error: ELF header smaller than expected
Entering rescue mode...
grub rescue>
I have no idea why this happened because I've not changed grub, just played around with apt. Has anybody any idea why apt had a blank sources file and grub is now failing?
Today I decided to include again Debian Volatile and discovered that it doesn't exist anymore and that I can get the same packages using this line: deb [url] squeeze-updates main
And the first question is: is this the same than debian-security?
Then, I decided to use [url] to make things less confused, and this was the output:
The first line is Ok. The second line, I guest it's the same than my second line. But, the third, is something different. So, the main question is: what is the difference between squeeze-proposed-updates and squeeze-updates? Are those repos completely separated from squeeze/updates (in security.debian.org)? And, what else should I add to have an always up-to-date and secure system?
It's always a good to backup a configuration file like sources.list before you edit it. To do so, issue the following command: sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup Where does it backup to and how do I access it? I want to put the backup on removable disk or upload it
0 packages upgraded, 2 newly installed, 0 to remove and 1 not upgraded.Need to get 49.2MB/55.5MB of archives. After unpacking 149MB will be used.Do you want to continue?
I have a new installation. I try to boot and instead of my grub menu, I get "error: file not found" and am dropped into the rescue prompt. I have just a standard "Desktop" installation. I installed from the 5.05 net install cd. I installed grub to the MBR.
partitions are: hd0,2 is / hd0,5 is swap entering the "set" command results in: prefix=(hd0,2)/boot/grub root=hd0,2 [Code]...
I've setup my own repository which I want to use SSH as the protocol. I managed to get everything working with an SSH key using port 22. Now, I would like to change the SSH port. I've already changed it on the SSH/repo server. Now I can't figure out how to change apt to use a custom port on the client computer.
My sources.list file line which worked over port 22: deb ssh://user@1.1.1.1/home/user/repo lenny main contrib non-free I've tried: deb ssh://user@1.1.1.1:12345/home/user/repo lenny main contrib non-free and it fails and actually says "failed connecting to port 22"
Can this be done? I've searched google for hours and I getting nothing but unrelated data. I've read the man pages. The man page for apt.conf specified that you can set the port this way for HTTP, but doesn't mention anything about ssh ports.
I have trouble setting up NFS on Debian Squeeze (2.6.32-5-kirkwood armv5tel GNU/Linux) running on a Sheevaplug. After some digging and googling I found that the NFS server is (probably) not properly installed.
no rules in iptables or hosts.allow or hosts.deny. Fresh OS install.
apt-get install --reinstall nfs-kernel-server
generates this output: Setting up nfs-kernel-server (1:1.2.2-4) ... Stopping NFS kernel daemon: mountd nfsd. Unexporting directories for NFS kernel daemon.... Exporting directories for NFS kernel daemon....
[Code]....
It could be related to this bug [URL] but I wonder if the fix goes to the arm-branch as well?
I have never had any trouble setting up NFS before.
I updated to Wheezy from Squeeze and whilst I can make changes to sources.list manually, I can't do some updates in Software Sources.For instance, the 3 check boxes under "Download from internet" are all un-ticked and I can't change them if I wanted to - even though the sources.list is set up with "main contrib non-free"I cannot amend the download server either - it works out what the best server is but wont update if I tell it to.
I am trying to create a local debian repo for 3rd party apps and my own deb's. I have done the following: dpkg-scanpackages debian | gzip -9c> debian/Packages.gz Which did create a file called Packages.gz in the directory However, when I do apt-get update on a client machine I get the following error: W: Failed to fetch [URL] Could not connect to 10.1.1.10:8080 (10.1.1.10). - connect (111: Connection refused) W: Failed to fetch [URL] Unable to connect to 10.1.1.10:8080: W: Some index files failed to download, they have been ignored, or old ones used instead.
Last nigth I upgrade my system to squeeze and it whent well except for grub-pc and udev. If i try to upgrade now udev will not install do to problems with the kernel version and grub-pc can't seem to find the boot image.
The announcement of several new make scripts in the 2.6.32 release notes is very exciting.1.8. Easy local kernel configuration.Most people uses the kernel shipped by distros - and that's good. But some people like to compile their own kernels from kernel.org, or maybe they like following the Linux development and want to try it. Configuring your own kernel, however, has become a very difficult and tedious task - there're too many options, and some times userspace software will stop working if you don't enable some key option. You can use a standard distro .config file, but it takes too many time to compile all the options it enables.
To make easier the process of configuration, a new build target has been added: make localmodconfig. It runs "lsmod" to find all the modules loaded on the current running system. It will read all the Makefiles to map which CONFIG enables a module. It will read the Kconfig files to find the dependencies and selects that may be needed to support a CONFIG. Finally, it reads the .config file and removes any module "=m" that is not needed to enable the currently loaded modules. With this tool, you can strip a distro .config of all the unuseful drivers that are not needed in our machine, and it will take much less time to build the kernel. There's an additional "make localyesconfig" target, in case you don't want to use modules and/or initrds.
I followed this doc for the "debian method" for building the kernel: [URL]. I installed the source in /var/tmp/src/linux-2.6-2.6.32 , configured it, and tried make-kpkg modules-image. The error I get is:
checking for current directory... /usr/src/modules/alsa-driver checking cross compile... checking for directory with ALSA kernel sources... ../alsa-kmirror checking for directory with kernel top-level makefile... /var/tmp/src/linux-2.6-2.6.32 checking for directory with kernel headers... failed make[2]: *** [configure-stamp] Error 1 make[2]: Leaving directory `/usr/src/modules/alsa-driver' make[1]: *** [kdist_image] Error 2 make[1]: Leaving directory `/usr/src/modules/alsa-driver' Module /usr/src/modules/alsa-driver failed.
I tried some hacks such as setting KBUILD_SRC or ln -s linux-headers-2.6.32-5-amd64/ /usr/src/linux - but these fail too.
I just installed Debian 6.0 using the large installation image and a KDE environment now I am having issues setting up my sources.list file so that I can get all my updates over the internet. My current sources.list file looks like this:
# # deb cdrom:[Debian GNU/Linux 6.0.0 _Squeeze_ - Official amd64 DVD Binary-1 20110205-18:15]/ squeeze contrib main
I have this machine (motherboard ITX Jetaway NF94-270-LF based on CPU Atom N270, full specs here) as a server for some time now (about 4 years). Debian 8.1 is installed on it.
Two days ago, after a power failure, the machine was not able to complete the boot process. I attached a keyboard and a monitor (on VGA port, the motherboard also as a DVI one, but I don't have a suitable monitor) to be able to see what's happening and interact with the machine. Unluckily, at a certain point during the booting sequence the screen goes blank and the monitor goes in standby mode; apart from that, the boot process continues in the background.
As far as I can recall, this behaviour existed for at least a couple of years (if not from the beginning) and the boot process was always completed successfully until two days ago.
The screen goes blank after the setup of the keyboard mapping. I tried everything to avoid the screen going blank: in the Grub menu I set the "vga" parameter, the "nomodeset" parameter, the grub_gfxmode parameter, I removed the "quiet" option, I removed the "load_video" line, I forced the BIOS to only use the VGA port for the video and so on, in order to disable or configure differently the video and the framebuffer. All these stuff had no effect at all: the screen keeps going blank at the same point during the boot process.
The only way I was able to use a fully booted system through keyboard and monitor was via the rescue mode of the Debian 8.1 netinst image. But that way, of course, I wasn't able to observe the normal boot process. So, I checked the boot parameters of the rescue mode and I found that the only usefull parameter was "vga", which I already used and was ineffective.
This started happening after I started working on the kernel image and initramfs tools configurations basically started trying to make my system work the way I wanted.I can be doing anything like playing worms or being on this forum and the screen turns black but I don't lose energy just nothing shows on the screen and my keyboard doesn't respond the num lock doesn't turn either state,
I have two systems, both running Squeeze, one (desktop) executes Java applications perfectly while the other (laptop) doesn't.
I found two small examples: http://www.x2d.org/java/projects/fluffschack.jnlp works well on both systems
[Code]....
All the online Java tests I have found tells me that all is fine. I've browsed around quite a bit, and some are suggesting incompatibilities between Java and certain display drivers, but unsure of how to proceed.
I'm always getting a blank console screen after booting a 2.6.32-trunk-amd64 kernel in squeeze. I still can read the line "Loading, please wait ..." in the display for a second - then it's completely black until X windows is starting. When I try switching from the X console to another virtual console (by pressing Ctrl-Alt-F1 e. g.), the complete system freezes. I have to hard reboot then.When I boot the previous 2.6.32-3-amd64 kernel instead, everything is fine as expected, though.There's a line "GRUB_GFXMODE=1024x768x16@60" in /etc/default/grub as well as a line "set gfxpayload=keep" in /etc/grub.d/00_header. So the problem might be framebuffer related in any way. Any ideas what could be tried?The system is a Latitude E6500 with a Mobile 4 Series Chipset Integrated Graphics Controller
and this morning's updates broke x. I get a blank screen instead of the login. I'm running an Nvidia 7900GS. I tried re-installing the Nvidia drivers... no good. I switched to the nv drivers and got further; I got the login screen, but when I try to log in it gives me the KDE splash screen and then takes me back to the login screen. I'm not sure what to try next.
After the mass amount of updates that appeared for Debian, my DVD drive seems to detect a burned DVD I have as blank now. And when i put in the disc, there's two copies of the DVD drive on Computer, both of which are labeled CD/DVD Drive: Blank DVD-ROM Disc. I have gone in to disc manager and found that it is possible to mount the volume on the disc, and on the second icon it will appear and work. However, this is annoying having two icons.
Now, when I don't have a disc in there, it only shows one drive. My PC may have messed up during the updates, because I just let it update in the background while my sister was using it to show my mom's friends pictures and she randomly closed out of one of the windows without asking me anything (ffff), so that may have messed something up. Does anyone know how I would go about fixing this?
I just upgraded from Lenny to Squeeze and now when I enter startx I get a solid black screen and the computer does not respond to any keyboard input. Ctrl-Alt-Backspace, Ctrl-Alt-Delete, Esc, Alt-F2, Alt-F4, etc. all do nothing. No beeps or anything. I have an NVidia graphics card and have been using the proprietary NVidia drivers. I originally thought the problem might be related to this driver but I tried both the nv and vesa drivers and got the same results.
Attached is my Xorg.log.0 file. It just ends after the GLX extension initialization.I am able to use ssh to login after running startx. Running "ps aux" from the remote machine I did not see a process for X. I copied the output below the Xorg.log.0 file.
During playing around sources, synaptic playing I messed up the default list. I know I should have been more careful. Anyways could someone tell me what the default the default sources.list that has free and non free etc for squueze please? I have been trying to get the default list but I cannot find it anywhere. There are alot of lists out there but nothing tagged like the "default" list.
I've been using ubuntu on a new desktop for a couple of months, but i had an old HP that was given to me in my basement. It has 384Mb of ram, and thats because i had a 256Mb stick laying around. I installed debian becuase it is more suited for older hardware (at least from what I've read). It installed fine, but it boots to a blank screen, and pressing ctrl+alt+F2 bring me to the command line. I checked /etc/X11/xorg.conf to change the driver to vesa, to find out my video card isn't even shown. I ran lspci and I found that it says my graphics card is Intel Corporation 82810E DC-133 (CGC) Chipset graphics controller (rev3) In the device section of xorg.conf, it merly says Identifier"Configured Video Device"
When I want to update with synaptic I get this error:Ophalen van ts/Release is mislukt Unable to find expected entry 'iceweasel-5.0/source/Sources' in Release file (Wrong sources.list entry or malformed file)Some index files failed to download. They have been ignored, or old ones used instead.
I have some errors when run the mount -all command: mount: wrong fs type, bad option, bad superblock on /dev/sdc5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Failed to open /proc/filesystems: No such file or directory
I have installed Windows 7 on my laptop . Now, it directly boot from Windows 7 . I think the MBR overwrote my grub . I have found two methods by google , but still does work . 1: boot from debian install CD, Alt +F2 switch to the console. "grub " "root (hd0,0)" "setup (hd0,0)". 2:boot from CD, mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt ; chroot /mnt ; grub-install /dev/sda.
error found with your "Postfix virtual maps": No "map sources" were found in the Postfix configuration. your system is not ready for use by Virtualmin. how do I set this?