Debian | Brain Goo https://www.popmartian.com/tipsntricks Carpe Crap 'em Wed, 20 May 2009 15:46:16 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.10 LVM Breaks When Upgrading Debian Etch to Lenny 4.x to 5.0 https://www.popmartian.com/tipsntricks/2009/04/28/lvm-breaks-when-upgrading-debian-etch-to-lenny-4x-to-50/ https://www.popmartian.com/tipsntricks/2009/04/28/lvm-breaks-when-upgrading-debian-etch-to-lenny-4x-to-50/#comments Tue, 28 Apr 2009 14:37:46 +0000 http://www.popmartian.com/tipsntricks/?p=83 Using the standard upgrade proceedures, Debian Etch + LVM will fail to upgrade to Debian Lenny gracefully.  This is due to the kernel modules and is simple to avoid. Before changing apt sources (They should be etch) apt-get update apt-get … Continue reading →

The post LVM Breaks When Upgrading Debian Etch to Lenny 4.x to 5.0 first appeared on Brain Goo.

]]>
Using the standard upgrade proceedures, Debian Etch + LVM will fail to upgrade to Debian Lenny gracefully.  This is due to the kernel modules and is simple to avoid.

  1. Before changing apt sources (They should be etch)
  2. apt-get update
  3. apt-get upgrade
  4. reboot if kernel upgrades
  5. Now change your apt sources  (Lenny or Stable)
  6. apt-get update
  7. apt-get upgrade
  8. NOTE: At this point lvm2 is probably held back.
  9. Reboot if the kernel upgrades
  10. NOW do your dist upgrade
  11. apt-get update
  12. apt-get dist-upgrade
  13. NOTE: At this point lvm2 is probably still held back.
  14. Reboot
  15. apt-get update
  16. apt-get install lvm2
  17. Reboot

TADA!  You have to reboot a couple times, but you never have to touch the configs or the mapper.

Did you find this post useful or have questions or comments? Please let me know!

The post LVM Breaks When Upgrading Debian Etch to Lenny 4.x to 5.0 first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2009/04/28/lvm-breaks-when-upgrading-debian-etch-to-lenny-4x-to-50/feed/ 4
Debian Key Signing Bug: NO_PUBKEY https://www.popmartian.com/tipsntricks/2007/09/06/debian-key-signing-bug-no_pubkey/ https://www.popmartian.com/tipsntricks/2007/09/06/debian-key-signing-bug-no_pubkey/#respond Thu, 06 Sep 2007 23:48:52 +0000 http://www.popmartian.com/tipsntricks/2007/09/06/debian-key-signing-bug-no_pubkey/ There appears to be a bug in Debian’s key signing system. Depending on your apt sources you may run in to packages signed by a key that Debian doesn’t like. Annoyingly, these are Debian-signed packages, but unless you want to … Continue reading →

The post Debian Key Signing Bug: NO_PUBKEY first appeared on Brain Goo.

]]>
There appears to be a bug in Debian’s key signing system. Depending on your apt sources you may run in to packages signed by a key that Debian doesn’t like. Annoyingly, these are Debian-signed packages, but unless you want to fix it, here is a workaround.

http://non-us.debian.org is a repository signed with F1D53D8C4F368D5D, but Debian does not trust that key (because it is expired). Go figure.

To resolve the irritating error:
W: GPG error: http://non-us.debian.org stable/non-US Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY [some key]

Do this:

1) Make sure you have the newest keys from Debian the automagical way: apt-key update
This will probably do nothing.

2) Update your keys manually:

  • Visit http://ftp-master.debian.org
  • Find the URL to the latest key (right at the top of the page)
  • Download it and import it: wget [URL] -O - | apt-key add - (replace [URL] with the link to the key, silly)

3) Try again. If it was indeed a key issued by Debian that you were missing, you should have it now. My guess is you have stumbled across packages signed by a key that Debian forgot to include in their trusted keys list.

4) The Icky part

  • Install GNU PG if you don’t have it: apt-get install gnupg
  • Grab the key from Debian (Hey, it’s their key, they just forgot to give it out): gpg --keyserver keyring.debian.org --recv-keys [KEY]
  • Install the key: gpg --armor --export [KEY] | sudo apt-key add -
  • Trust the key: gpg --export [KEY] >> /etc/apt/trusted.gpg
  • Make sure the key is there: gpg --list-keys

Now, not to rag on the Debian group, but the key I have been fighting with is F1D53D8C4F368D5D on non-us.debian.org. That key is expired which is why it is not distributed. No packages should be signed with it.

The post Debian Key Signing Bug: NO_PUBKEY first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2007/09/06/debian-key-signing-bug-no_pubkey/feed/ 0
Debian-based machines and the (initramfs) prompt https://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/ https://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/#comments Thu, 09 Aug 2007 19:07:59 +0000 http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/ There are a million pages devoted to initramfs so I won’t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu … Continue reading →

The post Debian-based machines and the (initramfs) prompt first appeared on Brain Goo.

]]>
There are a million pages devoted to initramfs so I won’t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu or Kbuntu, you may have run in to an issue booting after installing a kernel update.

Common errors are:

Target filesystem doesn’t have sbin/init
BusyBox v.1.1.3
/bin/sh: can’t access tty; job control turned off
(initramfs)

or

mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory
Done.
Target filesystem doesn’t have /sbin/init

or

Mounting root file system…
Running /scripts/local-top…Done.
Running /scripts/local-premount…Done.
kjournald starting. Commit interval 5 seconds.
Running /scripts/log-bottom…Done.
Running /scripts/init-bottom…
Mounting /root/dev on /dev/.static/dev failed: No such file or directory…Done.
Mounting /sys on /root/sys filed: No such file or directory
Mounting /proc on /root/proc filed: No such file or directory
Target filesystem doesn’t have /sbin/init

A common reason for this is simple. Your GRUB menu is messed up and you swear you didn’t touch it!

There is a bug somewhere in Debian that changes your filesystem from /dev/sd<something> to /dev/sd<something else>. Of course changing that will make the system mount root from the wrong partition and BOOM! No boot for you.

In my case it constantly changes my boot partition from /dev/sda1 to /dev/sdb1 which is really annoying. If I don’t update /boot/grub/menu.lst before I reboot, my system will not come back.

Lucky for you Debian has BusyBox and initramfs with the 2.6 kernel.

You will have to be on the console for this, but here is how to get up and running:

  • Boot up your broken system.
  • (initramfs) is actually a prompt, so:
    • (initramfs) cd /
  • (initramfs) mkdir /mnt Make a directory in the RAM filesystem.
  • (initramfs) mount /dev/sda1 /mnt Mount your REAL root partition there.
  • (initramfs) vi /mnt/boot/grub/menu.lst Edit your menu.lst file to load the correct partition (toward the bottom)
  • (initramfs) reboot

In my most recent case, the line:

kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro

Was changed to

kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sdb1 ro

If I change it back before I reboot, I don’t have an issue.

The post Debian-based machines and the (initramfs) prompt first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/feed/ 7
SMTP & POP3 Email for Virtual Users on Debian Sarge https://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/ https://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/#respond Tue, 31 Jul 2007 19:20:52 +0000 http://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/ How to set up virtual email domains and users with POP access on Debian Sarge http://www.randomsequence.com/articles/smtp-pop3-email-for-virtual-users-on-debian-sarge/ Adverts: The Exim SMTP Mail Server Exim: The Mail Transfer Agent The Exim SMTP Mail Server: Official Guide for Release 4

The post SMTP & POP3 Email for Virtual Users on Debian Sarge first appeared on Brain Goo.

]]>
How to set up virtual email domains and users with POP access on Debian Sarge

http://www.randomsequence.com/articles/smtp-pop3-email-for-virtual-users-on-debian-sarge/

Adverts:
The Exim SMTP Mail Server
Exim: The Mail Transfer Agent
The Exim SMTP Mail Server: Official Guide for Release 4

The post SMTP & POP3 Email for Virtual Users on Debian Sarge first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/feed/ 0
Debian GCC libc package required https://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/ https://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/#respond Tue, 10 Jul 2007 23:07:57 +0000 http://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/ If you use Debian with a “standard” or “desktop” install, you will not have GCC installed. Of course you can easily get it by installing the package: apt-get install gcc And of course you need make apt-get install make What … Continue reading →

The post Debian GCC libc package required first appeared on Brain Goo.

]]>
If you use Debian with a “standard” or “desktop” install, you will not have GCC installed. Of course you can easily get it by installing the package:

apt-get install gcc

And of course you need make

apt-get install make

What you don’t know is that you won’t be able to do anything without your C library and headers. You will get errors that your compiler cannot make executables.

The package you want is libc6-dev

apt-get install libc6-dev

Much better!

The post Debian GCC libc package required first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/feed/ 0
Solaris Jumpstart Server on Linux https://www.popmartian.com/tipsntricks/2007/05/15/hello-world/ https://www.popmartian.com/tipsntricks/2007/05/15/hello-world/#respond Tue, 15 May 2007 23:32:31 +0000 http://www.5dollarwhitebox.org/wiki/index.php/Projects_Linux_Jumpstart_Server Very comprehensive tutorial on setting up a Solaris Jump Start server on Debian Linux (works on pretty much any Linux distro)

The post Solaris Jumpstart Server on Linux first appeared on Brain Goo.

]]>
http://www.5dollarwhitebox.org/wiki/index.php/Projects_Linux_Jumpstart_Server

Very comprehensive tutorial on setting up a Solaris Jump Start server on Debian Linux (works on pretty much any Linux distro)

The post Solaris Jumpstart Server on Linux first appeared on Brain Goo.

]]>
https://www.popmartian.com/tipsntricks/2007/05/15/hello-world/feed/ 0