他尝试更新ubuntu 13.10时出错

时间:2018-07-17 17:41:13

标签: ubuntu

我想更新ubuntu服务器的版本

我执行命令sudo apt-get update似乎一切正常,但是当我运行sudo apt-get upgrade时出现此错误,有人可以帮助我吗?

Reading package lists... Done

Building dependency tree

Reading state information... Done

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue [Y/n]? Y

perl: warning: Setting locale failed.

perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = "en_US.UTF-8",
        LC_TYPE = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.

perl: warning: Falling back to the standard locale ("C").

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.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable

Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)

1 个答案:

答案 0 :(得分:0)

由于错误,public class ViewPortTestScreen1 extends MScreen { private Viewport viewport; private Stage stage; private OrthographicCamera camera; public ViewPortTestScreen1() { // camera camera = new OrthographicCamera(); // viewport // viewport = new FitViewport(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), camera); viewport = new FitViewport(1000, 1000, camera); // stage stage = new Stage(viewport); // actor Texture texture = new Texture("badlogic.jpg"); TextureActor textureActor = new TextureActor(0, 0, texture); TextureActor textureActor2 = new TextureActor(viewport.getWorldWidth() - texture.getWidth(), 0, texture); TextureActor textureActor3 = new TextureActor(0,viewport.getWorldHeight() - texture.getHeight(), texture); TextureActor textureActor4 = new TextureActor(viewport.getWorldWidth() - texture.getWidth(), viewport.getWorldHeight() - texture.getHeight(), texture); stage.addActor(textureActor); stage.addActor(textureActor2); stage.addActor(textureActor3); stage.addActor(textureActor4); } @Override public void show() { super.show(); } @Override public void render(float delta) { super.render(delta); // stage stage.act(); stage.draw(); } @Override public void resize(int width, int height) { stage.getViewport().update(width, height,true); } private class TextureActor extends Actor { private Texture texture; private float x; private float y; TextureActor(float x, float y, Texture texture) { this.x = x; this.y = y; this.texture = texture; setWidth(this.texture.getWidth()); setHeight(this.texture.getHeight()); } @Override public void act(float delta) { super.act(delta); } @Override public void draw(Batch batch, float parentAlpha) { batch.draw(texture, x, y, getWidth(), getHeight()); } } } 可能已从ldconfig移到libc6。使用以下命令下载并解压缩libc-bin软件包:

libc-bin

接下来,您需要复制以下文件:

apt-get download libc-bin
dpkg -x libc-bin*.deb unpackdir/

现在,您需要确保一切井井有条。运行以下命令以确保:

sudo cp unpackdir/sbin/ldconfig /sbin/

Fix: Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm获得答案