Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


early on stumbling blocks on fresh Ubuntu 8.04 LTS install

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Author Message
stacato



Joined: 13 May 2008
Posts: 3

Posted: Tue May 13, 2008 3:56 pm    Post subject: early on stumbling blocks on fresh Ubuntu 8.04 LTS install  

I just kicked my old deb install and gave the new Ubuntu 8.04 image a shot.

The few clicks for it went smoothly till I opened the AJAX console and logged in. So far so good. Problems started happening when I ran aptitude safe-upgrade.

I started getting all different type of errors.
Quote:
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 8561 files and directories currently installed.)
Preparing to replace util-linux 2.13.1-5ubuntu1 (using .../util-linux_2.13.1-5ubuntu2_i386.deb) ...
install-info(ipc): no file /usr/share/info/dir, retrieving backup file /var/backups/infodir.bak.
cp: cannot create regular file `/usr/share/info/dir': No such file or directory
install-info(ipc): copying /var/backups/infodir.bak to /usr/share/info/dir failed, giving up: No such file or directory
... ... ...
Errors were encountered while processing:
/var/cache/apt/archives/util-linux_2.13.1-5ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: error processing util-linux (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Errors were encountered while processing:
util-linux
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done


1# apt-utils not installed
2# locale nowhere to be found
3# /usr/share/info directory completely missing

Point 3# fixed by creating the directory.
Point 1# solved by copying the the apt-utils package over and installing it.

Still stuck on 2# though.
Who would have thought that such a simple task as running aptitude on a freshly installed system could lead to this?

Same result if runnign apt-get on the fresh install. (tried it after redoing the install just to have a fresh system to start of nothaving run aptitude on it).

... anybody else had this?
Back to top  
path



Joined: 28 Mar 2008
Posts: 12
Location: Delaware

Posted: Tue May 13, 2008 4:25 pm    Post subject:  

I believe the locales package should fix some of those issues.

Code: aptitude install locales
Back to top  
stacato



Joined: 13 May 2008
Posts: 3

Posted: Tue May 13, 2008 4:45 pm    Post subject:  

@path

Aye, so it did indeed.
Just weird ... haven't had this happen to me before.
Back to top  
Hamilogre



Joined: 10 Aug 2006
Posts: 1

Posted: Tue May 13, 2008 10:54 pm    Post subject:  

I'm having this same problem, and "aptitude install locales" didn't seem to work. Any ideas?
Back to top  
stacato



Joined: 13 May 2008
Posts: 3

Posted: Wed May 14, 2008 12:57 am    Post subject:  

@Hamilogre

I started out fresh.
This is what I did.

Downloaded following packages from the Ubuntu mirrors.

locales_2.7.9-4_all.deb
belocs-locales-bin_2.4-2.2ubuntu7_i386.deb (dependancy of locales)
apt-utils_0.7.9ubuntu17_i386.deb
wget_1.10.2-3ubuntu1_i386.deb

scp'ed them over.

First dpkg -i apt-utils. Then belocs, then locales and finally wget.
Somewhere in the process /usr/share/info was also created.
Back to top  
piglet



Joined: 22 Oct 2006
Posts: 17

Posted: Wed May 21, 2008 2:00 pm    Post subject:  

I kept getting locale-related warnings until I installed the language-pack-en package also.
Back to top  
pip



Joined: 03 Jun 2008
Posts: 2

Posted: Tue Jun 03, 2008 3:54 pm    Post subject:  

I used
Code: localedef -i en_US -c -f UTF-8 en_US.UTF-8 after I installed the locales package. That fixed the locale problem for me.
Back to top  
 
       Linode.com Forum Forum Index -> Linux, Apache, Mysql and PHP (LAMP) Forum
Page 1 of 1