I am trying to install R version 4.0.2 on ubuntu 18.04 but it shows this message:
The following packages have unmet dependencies:
r-base : Depends: r-base-core (>= 4.0.3-1.2004.0) but it is not going to be installed
Depends: r-recommended (= 4.0.3-1.2004.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
You have to remove problematic PPA (it does no publish packages for 18.04 LTS - bionic) first with:
sudo add-apt-repository -r ppa:grass/grass-stable
and then update your package lists
sudo apt-get update
and install new updates with their dependencies by
sudo apt-get dist-upgrade
You have added R 3.5 repository (see bionic-cran35 in its URL), instead of needed R 4.0 (bionic-cran40). You have to remove wrong repository with
sudo add-apt-repository -r 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
and then add correct one:
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt-get dist-upgrade
sudo apt-get install r-base r-base-core r-recommended
In order to install the last R version in Ubuntu LTS >= 16.04. (amongst other 18.04) follow the instructions at CRAN. If you have already installed the distro version of R remove it with the package manager.
Here, I made a summarized version of the instructions.
Note that this instructions are valid for any LTS. I tried them with 18.04. and worked smoothly.
update indices
sudo apt update -qq
install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
Add the signing key (by Michael Rutter) for these repos
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
Add the R 4.0 repo from CRAN
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
Install R and its dependences
sudo apt install --no-install-recommends r-base
Ready, you can execute R by just entering R on your terminal.
Related
Actually, with the new release of Xdebug 3, I have to investigate more why its not working. I don't have much time for that.
The problem was I had this command for vagrant box creation but it does not have any version number.
sudo apt-get install -y php-xdebug
Is there a way to specify the version number to install version 2.9.3
this worked for me. Thank you #LazyOne for help. :-)
sudo apt-get install -y php-pear php7.3-dev
sudo apt install -y php7.3-xdebug
sudo pecl install xdebug-2.9.3
I am trying to install ms sql in Ubuntu 20.04. Even I have got it installed in 20.04 successfully following this guide but I sometime I have this problem multiple time and not sure why is this happening.
When I try to run following commads
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
sudo apt-get install mssql-tools unixodbc-dev
I end up having below errors:
The following packages have unmet dependencies:
mssql-tools : Depends: msodbcsql17 (>= 17.3.0.0) but it is not going to be installed
unixodbc-dev : Depends: unixodbc (= 2.3.7)
Depends: odbcinst1debian2 (= 2.3.7) but 2.3.6-0.1build1 is to be inst
E: Unable to correct problems, you have held broken packages.
sudo apt-cache policy <package> shows multiple versions available for these packages.
I tried installing the right versions for dependencies that did not help when I ran sudo apt-get install mssql-tools unixodbc-dev again.
When I checked msprod.list file, it looks like 'https://packages.microsoft.com/config/ubuntu/18.04/prod' the tailed .list is missing so I added that(not sure I should do that or not). Then I have got everything installed.
Now when I do sudo apt update it ends up with below error:
E: The repository 'https://packages.microsoft.com/ubuntu/18.04/prod.list bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I really don't understand what is happening and what I have to do to get thing working in simplest way.
Do as follow:
apt install mssql-tools unixodbc-dev odbcinst1debian2 msodbcsql17 unixodbc libodbc1
apt-get install stuff caring about package conflict.
If you use apt only it will forcefully install the package without taking care if the installation is creating conflicts.
How do you install boto3 on Ubuntu 18.04?
I tried this:
# pip install boto3
Command 'pip' not found, but can be installed with:
apt install python-pip
# apt install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
#
Partial answer found at https://askubuntu.com/questions/672808/sudo-apt-get-install-python-pip-is-failing
sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python3-pip
Do not run pip install --upgrade pip, otherwise the following steps are also needed:
from https://github.com/pypa/pip/issues/5240
vi /usr/bin/pip3
change the broken from pip import main import to
from pip._internal import main
and then finally
pip3 install boto3
it's quite simple, just install it from the terminal
apt install python-boto3
The log you posted informs you that the commands pip and python-pip are not already installed. So, if you still use python 2 (do not recommend), you can install pip or python-pip
sudo apt-get install pip
sudo apt-get install python-pip
and then install boto3: sudo pip install boto3.
Otherwise, if you already use Python 3, you can just install pip3 or python3-pip
sudo apt-get install pip3
sudo apt-get install python3-pip
and then install boto3: sudo pip3 install boto3
sudo apt-get build-dep octave is not working. The error message is "E: Build-Depends dependency for octave cannot be satisfied because the package automake cannot be found". I have modified the /etc/apt/sources.list file with deb replaced by deb-src. Even when I try sudo apt-get install octave, an error is displayed that the package is not located.
Octave packages http://wiki.octave.org/Octave_for_Debian_systems
Many Octave packages are also distributed by your Linux distribution. These are tested to work the best with your Octave version. For example:
sudo apt-get install octave-control octave-image octave-io octave-optim octave-signal octave-statistics
Octave's Personal Package Archive (PPA) for Ubuntu
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
Or
sudo apt-get autoclean
You can also Try with
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.bz2
tar -xvf octave-4.0.0.tar.bz2
cd octave-4.0.0
./configure
make
sudo make install
More version are available at ftp://ftp.gnu.org/gnu/octave
Or
Adding a line to your /etc/apt/sources.list
amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist
i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download
I am not able to install apache2 on Ubuntu 14.04.
On executing
sudo apt-get install apache2 getting the below error:-
The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.7-1ubuntu4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
As mentioned in the link I tried doing apt-get upgrade -f.
Also the output of dpkg --get-selections | grep -i ^apache2
apache2 deinstall
apache2-doc install
apache2-utils install
apache2.2-common deinstall
Output of apt-mark unhold apache2-bin
apache2-bin was already not hold
Output of apt-cache depends apache2
apache2
Depends: lsb-base
Depends: procps
procps:i386
Depends: perl
Depends: mime-support
Depends: apache2-bin
Depends: apache2-data
Suggests: <www-browser>
arora
dillo
dwb
lynx-cur:i386
lynx-cur
netsurf
netsurf-fb
netsurf-gtk
uzbl
chimera2
chromium-browser
elinks
epiphany-browser
firefox
google-chrome-beta
google-chrome-stable
google-chrome-unstable
konqueror
links
links2
midori
netrik
rekonq
surf
w3m:i386
w3m
xemacs21-mule
xemacs21-mule-canna-wnn
xemacs21-nomule
Suggests: apache2-doc
|Suggests: apache2-suexec-pristine
Suggests: apache2-suexec-custom
Suggests: ufw
Suggests: apache2-utils
apache2-utils:i386
Recommends: ssl-cert
Conflicts: apache2.2-common
Conflicts: <apache2.2-common:i386>
Replaces: apache2.2-common
Replaces: <apache2.2-common:i386>
Conflicts: apache2:i386
Output of apt-cache policy apache2 apache2-bin
apache2:
Installed: (none)
Candidate: 2.4.7-1ubuntu4
Version table:
2.4.16-4+deb.sury.org~precise+4 0
100 /var/lib/dpkg/status
2.4.7-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
apache2-bin:
Installed: (none)
Candidate: 2.4.7-1ubuntu4
Version table:
2.4.7-1ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Output of sudo aptitude -f install apache2
The following NEW packages will be installed:
apache2 apache2-bin{a} apache2-data{a} libaprutil1-dbd-sqlite3{ab} libaprutil1-ldap{ab}
0 packages upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,106 kB of archives. After unpacking 4,703 kB will be used.
The following packages have unmet dependencies:
libaprutil1-dbd-sqlite3 : Depends: libaprutil1 (= 1.5.3-1) but 1.5.4-1+deb.sury.org~precise+1 is installed.
libaprutil1-ldap : Depends: libaprutil1 (= 1.5.3-1) but 1.5.4-1+deb.sury.org~precise+1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) apache2 [Not Installed]
2) apache2-bin [Not Installed]
3) libaprutil1-dbd-sqlite3 [Not Installed]
4) libaprutil1-ldap [Not Installed]
Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Can some one help what is going wrong?
I face the similar problem when upgrading Ubuntu 12.04.x to 14.04.x with custom PPA that used to upgrade PHP5 previously.
I trace into the problem and found the package that having problem which is libaprutil1.
I try the following and it fixes my issue
apt-get remove libaprutil1
apt-get autoremove
apt-get install apache2
Hope it helps !
I had the same problem and I solved it with this commands
sudo apt-get -f autoremove
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
than try again :
sudo apt-get install apache2
Hey i had the same problem about months ago!
Try this:
apt-get --purge remove apache2
apt-get autoremove
rm -rf /etc/apache2/
apt-get clean
apt-get update
After that you can try to install it again.
I hope this helps :-)
When asked, don't accept the given solution so that aptitude, next, offer an alternative where it will install apache-bin which is the unmet dependency as the error shows.
I have recently solved this issue.
----------------issue-----------------------
The following packages have unmet dependencies:
apache2 : Depends: apache2-bin (= 2.4.7-1ubuntu4) but 2.4.29-1ubuntu4.1 is to be installed
E: Unable to correct problems, you have held broken packages.
-------------------------------------------------------------------
First, remove the apache2-bin from the ubuntu as
sudo apt-get --purge remove apache2-bin
now install apache-bin2
sudo apt install apache2
It can happen when your system has dependencies with different versions than the required.
In my case, i removed the dependencies and then installed.
sudo apt-get purge apache2-bin
and then:
sudo apt-get install apache2