Tag Archives: apt-get

Kubuntu – Blankpage / hang after logon

Today I have a problem with my Kubuntu, that after i have apply my password for my user, I just got a blank page, only with the standard background of Kubuntu.

I found that I couldn’t start KDE, with the command startkde in the console, I don’t know how, but i was missing the apt-get packet name “kde-workspace-bin”

So I run this command:

sudo apt-get install kde-workspace-bin

Tips:  You can get into the console but holding down the following keys: CTRL ALT F1

Get list of installed programs from dead disk ubuntu debian

If you have a dead installation, some will not boot you can use this commands, to get the list of installed programs.
grep -B 1 \
"^Status: install ok installed$" /media/recovery2/var/lib/dpkg/status | \
awk '/^Package:.*$/{print $2"\t\tinstall"}' | \
sort > package.list
And this command to install it on a new installation:
dpkg --set-selections < package.list
apt-get dselect-upgrade

Debian packages cpio failes to be updated

If you have some troubles upgrading cpio, it returns this error:

Preparing to replace cpio 2.6-18 (using …/cpio_2.6-18.1+etch1_i386.deb) …
Unpacking replacement cpio …
Replaced by files in installed package tar …
dpkg: error processing /var/cache/apt/archives/cpio_2.6-18.1+etch1_i386.deb (–u npack):
unable to create `./usr/share/locale/ko/LC_MESSAGES/cpio.mo’: No such file or d irectory
Errors were encountered while processing:
/var/cache/apt/archives/cpio_2.6-18.1+etch1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Try to run this commands:

mkdir -p /usr/share/locale/ko/LC_MESSAGES
mkdir -p /usr/share/locale/gl/LC_MESSAGES
mkdir -p /usr/share/locale/ru/LC_MESSAGES
mkdir -p /usr/share/locale/tr/LC_MESSAGES
mkdir -p /usr/share/locale/sv/LC_MESSAGES
mkdir -p /usr/share/locale/zh_CN/LC_MESSAGES
mkdir -p /usr/share/locale/da/LC_MESSAGES
mkdir -p /usr/share/locale/nl/LC_MESSAGES

And then the update should be working just fine

Installere 2 ens Debian maskiner op.

Det kan være praktisk at nå man skal installere 2 ens maskiner op, bare at finde frem til hvilket pakker der er installeret på den ene, og så overfører dem til den anden, dette gøres nemt med dpkg og dselect.
Først skal vi på maskine1 havde hentede de pakker ud som er installeret på den.

dpkg --get-selections > installedpackages

Så skal vi have overført filen fra maskine1 til maskine2, dette gøres lettes via SCP.

scp installedpackages [email protected]:/root

hvor XXX.XXX.XXX.XXX selvfølgeligt er IP adressen på maskine2.

Herefter gå vi på maskine 2 og henter denne selection.

cd /root
dpkg --clear-selections
dpkg --set-selections < installedpackages

Herefter kører vi dselect.

dselect install

Problems with apt-get in Debian (NO_PUBKEY A70DAF536070D3A1)

I got this error:

W: GPG error: http://security.debian.org testing/updates Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1
W: GPG error: ftp://ftp.port80.se testing Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY A70DAF536070D3A1
W: You may want to run apt-get update to correct these problems

This can be resolve but typing:
gpg --keyserver wwwkeys.eu.pgp.net --recv-keys A70DAF536070D3A1
gpg --armor --export A70DAF536070D3A1 | apt-key add -

Debian and build a package from source

I want to build pure-ftpd from source becurs my debian server dosent support capabilities.
So first i download the package:
host:/usr/local/src/# cd /usr/local/src
host:/usr/local/src/# apt-get -b source packagename

Then i change the debian/rules files in the package, so that pure-ftpd not support capabilities. (–without-capabilities)

host:/usr/local/src/# cd pure-ftpd-1.0.21/debian

host:/usr/local/src/#nano rules

Then i compile pure-ftpd.

host:/usr/local/src/# cd ..

host:/usr/local/src/# dpkg-buildpackage -rfakeroot -uc -b

Then I install the pure-ftpd-common and pure-ftpd-mysql

host:/usr/local/src/# cd ..

host:/usr/local/src/# dpkg -i pure-ftpd-common_1.0.21-11.1_all.deb

host:/usr/local/src/# dpkg -i pure-ftpd-mysql_1.0.21-11.1_i386.deb

Debian Unstabe NO_PUBKEY

When you run apt-get in Debian Unstable, you can get a error like this:

W: GPG error: ftp://ftp.se.debian.org unstable Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 010908312D230C5F
W: You may want to run apt-get update to correct these problems

It can be solved, this way:
gpg –keyserver wwwkeys.eu.pgp.net –recv-keys 010908312D230C5F
gpg –armor –export 010908312D230C5F | sudo apt-key add –
apt-get update

Byt keyid “010908312D230C5F”, med den nøgle du mangler.