当前位置: 首页 > 知识库问答 >
问题:

Erlang不会从Ubuntu 18.04中卸载

法浩壤
2023-03-14

我有一个 Ubuntu-18.04 aws 实例。我已经安装了Erlang / OTP 21 [erts-10.1],按照这个链接 https://hostpresto.com/community/tutorials/how-to-install-erlang-on-ubuntu-16-04/ 但我是每当我尝试在同一实例上安装ejabberd时,我都会收到这样的错误

ubuntu@ip-172-11-11-11:~$ sudo apt-get install make gcc libexpat1-dev libyaml-dev  automake libssl-dev erlang  build-essential libncurses5-dev openssl zlib1g-dev libgd-dev libwebp-dev fop xsltproc unixodbc-dev -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
automake is already the newest version (1:1.15.1-3ubuntu2).
build-essential is already the newest version (12.4ubuntu1).
make is already the newest version (4.1-9.1ubuntu1).
make set to manually installed.
gcc is already the newest version (4:7.3.0-3ubuntu2.1).
gcc set to manually installed.
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04).
libssl-dev is already the newest version (1.1.0g-2ubuntu4.1).
openssl is already the newest version (1.1.0g-2ubuntu4.1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 erlang : Depends: erlang-diameter but it is not going to be installed
          Depends: erlang-eldap but it is not going to be installed
          Depends: erlang-ftp but it is not going to be installed
          Depends: erlang-tftp but it is not going to be installed
          Recommends: erlang-ic-java but it is not going to be installed
          Recommends: erlang-src but it is not going to be installed
          Recommends: erlang-examples but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

所以我决定使用以下命令卸载erlang:

sudo apt-get purge erlang*

sudo apt-get remove erlang

sudo apt-get remove --auto-remove erlang

sudo apt-get purge erlang

但是,即使在运行了它们之后,当我在cmd提示符下编写<code>erl</code>时,我也会得到

Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [hipe]

Eshell V10.1  (abort with ^G)
1> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution

我哪里出错了?现在如何完全卸载erlang?

编辑

~$ dpkg -l 'erlang*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
un  erlang         <none>       <none>       (no description available)
un  erlang-abi-17. <none>       <none>       (no description available)
un  erlang-appmon  <none>       <none>       (no description available)
un  erlang-asn1    <none>       <none>       (no description available)
un  erlang-base    <none>       <none>       (no description available)
un  erlang-base-hi <none>       <none>       (no description available)
un  erlang-common- <none>       <none>       (no description available)
un  erlang-corba   <none>       <none>       (no description available)
un  erlang-crypto  <none>       <none>       (no description available)
un  erlang-debugge <none>       <none>       (no description available)
un  erlang-dev     <none>       <none>       (no description available)
un  erlang-dialyze <none>       <none>       (no description available)
un  erlang-doc     <none>       <none>       (no description available)
un  erlang-docbuil <none>       <none>       (no description available)
un  erlang-edoc    <none>       <none>       (no description available)
un  erlang-erl-doc <none>       <none>       (no description available)
un  erlang-et      <none>       <none>       (no description available)
un  erlang-eunit   <none>       <none>       (no description available)
un  erlang-gs      <none>       <none>       (no description available)
un  erlang-ic      <none>       <none>       (no description available)
un  erlang-inets   <none>       <none>       (no description available)
un  erlang-inviso  <none>       <none>       (no description available)
un  erlang-manpage <none>       <none>       (no description available)
un  erlang-megaco  <none>       <none>       (no description available)
un  erlang-mnesia  <none>       <none>       (no description available)
ii  erlang-mode    1:21.1-1     all          Erlang major editing mode for Ema
un  erlang-observe <none>       <none>       (no description available)
un  erlang-odbc    <none>       <none>       (no description available)
un  erlang-os-mon  <none>       <none>       (no description available)
un  erlang-parseto <none>       <none>       (no description available)
un  erlang-percept <none>       <none>       (no description available)
un  erlang-pman    <none>       <none>       (no description available)
un  erlang-public- <none>       <none>       (no description available)
un  erlang-reltool <none>       <none>       (no description available)
un  erlang-runtime <none>       <none>       (no description available)
un  erlang-snmp    <none>       <none>       (no description available)
ii  erlang-solutio 1.0          all          A package to add repository.
un  erlang-ssh     <none>       <none>       (no description available)
un  erlang-ssl     <none>       <none>       (no description available)
un  erlang-syntax- <none>       <none>       (no description available)
un  erlang-test-se <none>       <none>       (no description available)
un  erlang-toolbar <none>       <none>       (no description available)
un  erlang-tools   <none>       <none>       (no description available)
un  erlang-tv      <none>       <none>       (no description available)
un  erlang-typer   <none>       <none>       (no description available)
un  erlang-webtool <none>       <none>       (no description available)
un  erlang-wx      <none>       <none>       (no description available)
un  erlang-xmerl   <none>       <none>       (no description available)

'type erl'给出此输出

erl is /usr/bin/erl

共有2个答案

松锐藻
2023-03-14

尝试将-y添加到您的命令中,如sudo apt get purge erlang*-y

洪弘毅
2023-03-14

我怀疑当前安装的软件包是< code>esl-erlang。正如您链接到的指南中提到的,您可以在< code>erlang和< code>esl-erlang之间进行选择,我猜打包的ejabberd更喜欢< code>erlang。尝试卸载< code>esl-erlang,您应该能够安装< code>erlang。

 类似资料:
  • 好吧,这是一个奇怪的,我甚至不认为是可能的。 所以,自从我使用Nexus5X以来,当我卸载应用程序时,SharedPreferences就不会被删除。 我通过Android Studio安装了这个应用程序并进行了测试。然后我卸载应用程序。然后我通过Android Studio重新发布了这个应用程序,所有的SharedPreferences值仍然存在。 知道是什么引起的吗?

  • 我已经安装了MongoDB 3.0.1以下命令在Ubuntu上安装MongoDB社区版在我的ubuntu 14.04 64位系统和我安装Robomongo接口使用。 当我尝试使用Robomongo连接MongoDB时,我得到一个错误,授权失败。我发现添加了对SCRAM-SHA-1身份验证(MongoDB 3.0)的支持,这解释了Robomongo 0.8。5不支持MongoDB 3.0。X完全。

  • 我的系统中安装了MySQL5.5,我想安装新版本的IE。MySQL5.7,所以我很难卸载旧版本。当我将尝试安装5.7时,它正在安装5.5。所以我需要帮助...下面是我执行的命令:-sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5mysql-client-core-5.5 正在读取包列表。.

  • 我通过点击此链接安装了Postgres,但现在无法完全删除它。 http://www.thegeekstuff.com/2009/04/linux-postgresql-install-and-configure-from-source/ 运行时:Sudo apt-get-purge remove postgres或Sudo apt-get - purge remove psql得到以下响应 软件

  • 当我更改ListViewAdapter时,我的项目将无法从ListView中清除,并且我有一些空白条目。 她是我的密码: