ubuntu server

Alle tekniske spørgsmål som ikke hører ind under de andre fora.
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

ubuntu server

Indlæg af cronner »

Får fejl på ubuntu server når jeg prøver at opdatere den er der nogle der kan greje den er rimelig ny til linuz så har ingen ide og har googlet og googlet... :(

Kører: sudo apt-get update
Kører: sudo apt-get upgrade

Output:

Kode: Vælg alt

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  clamav
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 locales
 squirrelmail-locales
E: Sub-process /usr/bin/dpkg returned an error code (1)
Senest rettet af cronner 17. jun 2009, 15:29, rettet i alt 1 gang.
Pihl
Indlæg: 1045
Tilmeldt: 13. sep 2006, 15:35
IRC nickname: mpih
Geografisk sted: Århus

Re: ubuntu server

Indlæg af Pihl »

Da du installere Squirrelmail, er der formentlig gået noget galt, og alt ikke er downloadet eller installeret korrekt. Prøv derfor at kør følgende:

Kode: Vælg alt

sudo apt-get - f install


F'et står for 'force', hvilket betyder at du tvinger den til at installere de manglende pakker. Hvis det heller ikke virker, så prøv med:

Kode: Vælg alt

sudo dpkg --configure --pending
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

Re: ubuntu server

Indlæg af cronner »

ingen af dem virker den første får samme fejl og nr 2:

sudo dpkg --configure --pending

Kode: Vælg alt

Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales
 squirrelmail-locales
Senest rettet af cronner 17. jun 2009, 15:29, rettet i alt 1 gang.
soundpartner
Indlæg: 3461
Tilmeldt: 27. sep 2008, 23:51
IRC nickname: sound
Geografisk sted: København

Re: ubuntu server

Indlæg af soundpartner »

cronner skrev:ingen af dem virker den første får samme fejl og nr 2:

sudo dpkg --configure --pending
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
squirrelmail-locales depends on locales; however:
Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
locales
squirrelmail-locales

hvis jeg var dig ville jeg prøve følgende:

Kode: Vælg alt

sudo dpkg --configure -a && sudo apt-get check -y && sudo updatedb && sudo aptitude update -y && sudo aptitude safe-upgrade -y
Selvudnævnt guru når det drejer sig om mobilt bredbånd

Webmaster og stifter af:
Billede
Hvor du finder scripts til en hver situation

Billede
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

Re: ubuntu server

Indlæg af cronner »

når jeg kører sudo dpkg --configure -a && sudo apt-get check -y && sudo updatedb && sudo aptitude update -y && sudo aptitude safe-upgrade -y får jeg

Kode: Vælg alt

Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales
 squirrelmail-locales


:(
soundpartner
Indlæg: 3461
Tilmeldt: 27. sep 2008, 23:51
IRC nickname: sound
Geografisk sted: København

Re: ubuntu server

Indlæg af soundpartner »

cronner skrev:når jeg kører sudo dpkg --configure -a && sudo apt-get check -y && sudo updatedb && sudo aptitude update -y && sudo aptitude safe-upgrade -y får jeg

Kode: Vælg alt

Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales
 squirrelmail-locales

:(


ok den siger at sqiirrelmail-locales laver ballade...
så lad os prøve at slette dem og starte forfra

Kode: Vælg alt

sudo aptitude install locales_ squirrelmail-locales_ locales squirrelmail-locales
 

det sletter og geninstallerer.
den siger sikkert noget om at der er programmer der afhænger af disse og vil derfor slette disse... dette er ok. du må så geninstallere disse bagefter.
jeg ved ikke hvordan med squirrelmail, men hvis der fremkommer en blå boks med ting du skal sige ja til så bruges tab samt piletaster til at navigere rundt (det valgte er rødt) og enter vælger
Selvudnævnt guru når det drejer sig om mobilt bredbånd

Webmaster og stifter af:
Billede
Hvor du finder scripts til en hver situation

Billede
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

Re: ubuntu server

Indlæg af cronner »

samme får dette output:

Kode: Vælg alt

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
  libtommath0{u}
The following partially installed packages will be configured:
  locales squirrelmail-locales
0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 164kB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
(Reading database ... 40459 files and directories currently installed.)
Removing libtommath0 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 locales
 squirrelmail-locales
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of squirrelmail-locales:
 squirrelmail-locales depends on locales; however:
  Package locales is not configured yet.
dpkg: error processing squirrelmail-locales (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 locales
 squirrelmail-locales
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initialising package states... Done
Writing extended state information... Done


Jeg har installeret squirrelmail efter denne guide hvis det kan hjælpe http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-3-p5
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

Re: ubuntu server

Indlæg af cronner »

har også prøvet

Kode: Vælg alt

apt-get remove squirrelmail


det gav:

Kode: Vælg alt

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ispell wamerican dictionaries-common iamerican
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  squirrelmail squirrelmail-locales
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 12.6MB disk space will be freed.
Do you want to continue [Y/n]? y
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
(Reading database ... 40453 files and directories currently installed.)
Removing squirrelmail-locales ...
Removing squirrelmail ...
Processing triggers for man-db ...
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 locales
E: Sub-process /usr/bin/dpkg returned an error code (1)


og bagefter

Kode: Vælg alt

 sudo apt-get upgrade


som gav:

Kode: Vælg alt

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  clamav
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Setting up locales (2.7.9-5) ...
/var/lib/dpkg/info/locales.postinst: 7: /usr/sbin/locale-gen: not found
dpkg: error processing locales (--configure):
 subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
 locales
E: Sub-process /usr/bin/dpkg returned an error code (1)


Update:
https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/151449/comments/2
TROR at det har fixet det list men har stadig når jeg kører "aptitude safe-upgrade"

Kode: Vælg alt

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
cronner
Indlæg: 6
Tilmeldt: 17. jun 2009, 14:21

Re: ubuntu server

Indlæg af cronner »

har lavet en ny reinstall med ubuntu 9.04 server 64bit men problemet er nu at alle services går ned efter et stykke tid ssh, apache, sql osv osv
Virker et stykke tid efter hard reboot... og server kan pinges.

Nogle der har en ide om hvad der er galt?