Daily Archives: September 15, 2009

bsd sql

0
Filed under WEB-DEV-LOG
Tagged as

/var/db/mysql/my.cnf
/usr/local/share/mysql/my-medium.cnf

Debian downgrade to stable

0
Filed under WEB-DEV-LOG
Tagged as

1.6. How can I keep stable versions of most packages?

That’s easy! Just add the following line to /etc/apt/apt.conf.d/70debconf:

APT::Default-Release “stable”;

1.9. How can I downgrade my system back to stable


One might think that apt-get dist-upgrade/stable would work, but no: the system informs you that you already have the most recent versions of all packages. (And I want to cry out, “I know that, you moron. That’s why I’m trying to downgrade to older versions.”)


However! Turns out that it’s easy! Just create the file /etc/apt/preferences with the folllwing contents:


Package: *

Pin: release a=stable

Pin-Priority: 1001



and run apt-get dist-upgrade.


It all seems so obvious now. It makes me feel ashamed that I didn’t just guess that I had to create this brand new configuration file that I’d never needed before instead of editing either of the two I’ve already had to mess with.


Once you’ve done this, though, life is sweet. The upgrade process (really a downgrade) trundles merrily along, until -

1.10. How can I fix “also in package” errors?


error processing /hulk/archives/debian-3.0/cd2/pool/main/libp/libpaper/libpaperg_1.1.8_i386.deb (–unpack):

trying to overwrite `/usr/lib/libpaper.so.1.1.2′, which is also in package libpaper1



That’s easy! Just use:


apt-get -f install

apt-get dist-upgrade # again



Of course!


FROM HERE

Debian: /etc/init.d/checkfs.sh: when check a nonexistent fs, boot halt, must press CONTROL-D continue

0
Filed under WEB-DEV-LOG
Tagged as
Package: initscripts
Version: 2.86.ds1-1
Severity: normal
File: /etc/init.d/checkfs.sh
 
when check a nonexistent fs, boot halt,must press CONTROL-D continue
remote   or a no display  system,....
 
change checkfs.sh,   after a little ,continue the boot.
 
patch:
--- /etc/init.d/checkfs.sh.orig 2005-06-06 13:40:08.000000000 +0800
+++ /etc/init.d/checkfs.sh      2005-06-07 09:29:56.000000000 +0800
@@ -39,7 +39,7 @@
echo "CONTROL-D will exit from this shell and continue system startup."
echo
# Start a single user shell on the console
-      /sbin/sulogin $CONSOLE
+      /sbin/sulogin -t 100 $CONSOLE
fi
fi
rm -f /fastboot /forcefsck