安装球拍的问题

发布于 2025-01-04 04:30:37 字数 2133 浏览 2 评论 0原文

我正在使用 Ubuntu...我正在尝试从他们的网站安装racket http://racket-lang.org/ download/...

安装后,在racket/下,有bincollectsdocincludelibman 作为文件夹和 README

我尝试运行 DrRacketRacketGracketraco,它总是告诉我程序' drracket' 目前尚未安装。您可以通过键入以下内容来安装它: sudo apt-get installracket

所以看来它还没有安装...有人可以帮忙吗?

我也尝试sudo apt-get installracket,但下载暂停:

After this operation, 299 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
0% [Connecting to us.archive.ubuntu.com (91.189.92.182)]

它总是0%...有人可以帮忙吗?

PS:过了很长一段时间...我收到一条消息:

Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket-common all 5.1.1+dfsg1-2
  Could not connect to us.archive.ubuntu.com:80 (91.189.92.184), connection timed out [IP: 91.189.92.184 80]
Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket i386 5.1.1+dfsg1-2
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket-doc all 5.1.1+dfsg1-2
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket-common_5.1.1+dfsg1-2_all.deb  Could not connect to us.archive.ubuntu.com:80 (91.189.92.184), connection timed out [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket_5.1.1+dfsg1-2_i386.deb  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket-doc_5.1.1+dfsg1-2_all.deb  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Edit1:另一个问题是如何卸载我从他们的网站下载的软件包...我可以做一个rm -rf?

I am using Ubuntu... I am trying to install racket from their website http://racket-lang.org/download/...

After installation, under racket/, there are bin, collects, doc, include, lib and man as folders and README.

I try to run DrRacket, Racket, Gracket or raco, it tells me always The program 'drracket' is currently not installed. You can install it by typing:
sudo apt-get install racket

So it seems that it has not been installed... Could anyone help?

I also try sudo apt-get install racket, but the download suspends:

After this operation, 299 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
0% [Connecting to us.archive.ubuntu.com (91.189.92.182)]

it is always 0%... Could anyone help?

PS: after a long while... I got a message:

Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket-common all 5.1.1+dfsg1-2
  Could not connect to us.archive.ubuntu.com:80 (91.189.92.184), connection timed out [IP: 91.189.92.184 80]
Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket i386 5.1.1+dfsg1-2
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Err http://us.archive.ubuntu.com/ubuntu/ oneiric/universe racket-doc all 5.1.1+dfsg1-2
  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket-common_5.1.1+dfsg1-2_all.deb  Could not connect to us.archive.ubuntu.com:80 (91.189.92.184), connection timed out [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket_5.1.1+dfsg1-2_i386.deb  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/r/racket/racket-doc_5.1.1+dfsg1-2_all.deb  Unable to connect to us.archive.ubuntu.com:http: [IP: 91.189.92.184 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Edit1: Another question is how to uninstall the package that I downloaded from their web site... May I just do a rm -rf?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

任谁 2025-01-11 04:30:37

球拍下载页面的安装程序有两种模式,您可以选择这两种模式作为它询问您的第一个问题的答案。单目录模式将整个内容放在一个目录中,您稍后可以通过删除来卸载该目录。在此模式下,安装程序还应要求您提供一个位置来放置二进制文件的符号链接(bin 子目录中的符号链接),并且这些文件应放置在您的 中的某个目录中。 >$PATH

这种设置的便利之处在于您可以将其安装在任何您想要的地方,而无需 root 访问权限。它还很方便,因为您可以稍后重命名和移动它,并使用多个版本。

如果运行这些命令(顺便说一句,应该是小写)产生该输出,那么似乎您有生成它的存根文件。 (我不知道为什么要这样做,所以欢迎对这些文件进行澄清。)最后,请注意,Asumu 指出的 PPA 与最近的版本保持非常更新,因此它会比默认值更好是。

The installer from the racket download page has two modes, which you choose as an answer to the first question it asks you. The single directory mode puts the whole thing in one directory which you can later uninstall by just removing. In this mode, the installer should also ask you for a place to put symlinks to the binaries (the ones in the bin subdirectory), and those should be placed in some directory that you have in your $PATH.

The convenient thing about this kind of setup is that you can install it anywhere you want, without requiring root access. It's also convenient in that you can later rename and move it around, and use multiple versions.

If running those commands (which should be in lower-case, btw) produces that output, then it seems that you have stub files that produce it. (And I don't know why that would be done, so clarifications on these files are welcome.) Finally, note that the PPA that Asumu pointed to is kept very updated with the recent release, so it would be better than whatever the default is.

一梦等七年七年为一梦 2025-01-11 04:30:37

您是否尝试按照错误消息建议运行 apt-get update ?当您的包裹列表已过时时,通常会发生这种情况。

您可能确实想通过 Linux 发行版安装它,但如果您想使用已经安装的版本,您可能只需将 racket/bin 目录添加到您的路径中。即,将 export PATH="$HOME/racket/bin/:$PATH" 添加到您的 .bashrc 中。

在 Ubuntu 上,您还可以使用 Jon Rafkind 设置的 PPA 以便您可以安装与 apt-get 一起使用。 PPA 页面有一个“将此 PPA 添加到您的系统”部分,解释了如何安装它。

Did you try running apt-get update like the error message suggested? This often happens when your package list is out-of-date.

You probably do want to install this through your Linux distro, but if you want to use the version you've already installed, you probably just need to add the racket/bin directory to your path. i.e., add something like export PATH="$HOME/racket/bin/:$PATH" to your .bashrc.

On Ubuntu you can also use a PPA that Jon Rafkind has set up so that you can install it with apt-get. The page for the PPA has an "Adding this PPA to your system" section that explains how to install it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文