如何在 ubuntu chromebook 上安装 sublime text?

如何在 ubuntu chromebook 上安装 sublime text?

我已经使用 crouton 在三星 chromebook 上安装了 ubuntu 12.04。我想知道如何在其上安装 sublime text(任何版本都可以)?如果无法安装,请推荐一些不错的替代方案。

这是安装时的错误日志:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  sublime-text
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,670 B of archives.
After this operation, 51.2 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/webupd8team/sublime-text-2/ubuntu/ precise/main sublime-text all 2.0.2-1~webupd8~3 [9,670 B]
Fetched 9,670 B in 3s (2,521 B/s)       
Preconfiguring packages ...
Please report to author unsupported platform 'armv7l'.
Selecting previously unselected package sublime-text.
(Reading database ... 68361 files and directories currently installed.)
Unpacking sublime-text (from .../sublime-text_2.0.2-1~webupd8~3_all.deb) ...
Please report to author unsupported platform 'armv7l'.
Please report to author unsupported platform 'armv7l'.
Downloading...
--2014-05-26 10:21:44--  https://c758482.ssl.cf2.rackcdn.com/Sublime%20Text%202.0.2.tar.bz2
Resolving c758482.ssl.cf2.rackcdn.com (c758482.ssl.cf2.rackcdn.com)... 72.246.79.162
Connecting to c758482.ssl.cf2.rackcdn.com (c758482.ssl.cf2.rackcdn.com)|72.246.79.162|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5584673 (5.3M) [application/x-bzip2]
Saving to: `Sublime Text 2.0.2.tar.bz2'

     0K ........ ........ ........ ........ ........ ........ 56% 23.3K 1m42s
  3072K ........ ........ ........ ........ .....            100% 56.3K=2m54s

2014-05-26 10:24:45 (31.3 KB/s) - `Sublime Text 2.0.2.tar.bz2' saved [5584673/5584673]

Download done.
Removing outdated cached downloads...
sha256sum mismatch Sublime Text 2.0.2.tar.bz2
Sublime Text is NOT installed.
dpkg: error processing /var/cache/apt/archives/sublime-text_2.0.2-1~webupd8~3_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/sublime-text_2.0.2-1~webupd8~3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您无法运行 Sublime,因为它不是为 ARM 处理器构建的。

ARM 构建被通缉,但不可用。

答案2

我找到了解决这个问题的方法:

cd /var/lib/dpkg
mv info info.bak
mkdir info 

然后再次安装。

答案3

只要按照以下步骤操作,您就能获得该应用程序。

    sudo add-apt-repository ppa:webupd8team/sublime-text-2
    sudo apt-get update
    sudo apt-get install sublime-text

相关内容