Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install dotnet on Ubuntu 18.04 Bionic Beaver #1400

Closed
QuAzI opened this issue Apr 2, 2018 · 17 comments
Closed

Can't install dotnet on Ubuntu 18.04 Bionic Beaver #1400

QuAzI opened this issue Apr 2, 2018 · 17 comments

Comments

@QuAzI
Copy link

QuAzI commented Apr 2, 2018

Repo for actual version of Ubuntu is empty
https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/

@moke-codes
Copy link

I've tried to install following the instructions for Ubuntu 17.10 (the newest available at https://www.microsoft.com/net/learn/get-started/linux/) and at certain point it gives the following error:

The following packages have unmet dependencies:
dotnet-runtime-2.0.6 :
Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
Depends: libicu57 but it is not installable
Depends: dotnet-hostfxr-2.0.6 but it is not going to be installed

@kirides
Copy link

kirides commented Apr 3, 2018

Disclaimer: I'm not part of the development team, or associated with microsoft in any other way.

looking at the release schedule for Ubuntu 18.04 Bionic Beaver, it turns out the final freeze will be on April 19th

Read the following sentence in a mild voice please :)
I would recommend you to wait until that day, before complaining about stuff not working.

@QuAzI
Copy link
Author

QuAzI commented Apr 3, 2018

@kirides Why you didn't suggest to wait second "service pack" before start to fix actual troubles with obsolete dependencies?
18.04 will have only minor updates now.
Right now dotnet and VSCode for him can't work and some people must use for new projects other solutions which have fewer dependencies problems and which works right now.

@moke-codes
Copy link

I was just stating, not complaining. I have Ubuntu 18.04 on my machine and I'm willing to use dotnet on it but unfortunately it isn't compatible at the moment.

@svick
Copy link
Contributor

svick commented Apr 3, 2018

@Moke-RS Just because you can't install it using apt doesn't mean you can't use it at all.

What you can do is to download the tar.gz binaries, extract and use that.

It's possible you will need to install some packages or that you will encounter other issues (since it's not an officially supported OS), but at least the Hello World worked for me.

@moke-codes
Copy link

@svick I was able to install it following the link you gave. Thanks!

@QuAzI
Copy link
Author

QuAzI commented Apr 18, 2018

It is available and installable now. Thanks!

# NO_PUBKEY EB3E94ADBE1229CF
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF

# NO_PUBKEY B02C46DF417A0893
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list'

sudo apt update
sudo apt install dotnet-sdk-2.1

@QuAzI QuAzI closed this as completed Apr 18, 2018
@damageboy
Copy link

Just noticed that dotnet-sdk-2.1.105 is available in 18.04!

@Anduin2017
Copy link
Member

Just downloaded the ubuntu 18.04 and @QuAzI 's solution really helped me. Thanks!

@mbodm
Copy link

mbodm commented May 9, 2018

Hey,

it seems that the current state of the repo is missing some of the aspnetcore-store-2.0.x packages which seem to be a dependency of the .105 or .200 SDK. Using the official install instructions on a fresh installation of Ubuntu 18.04 apt reports dependency errors while installing.

Maybe just some packages are missing in the repo currently ?

@eman1986
Copy link

eman1986 commented Jun 5, 2018

I was unable to install 2.1 on ubuntu 18.04

curious to know why on earth the prep portion has 6 steps whereas every other ubuntu version only has 2?

@Voltir
Copy link

Voltir commented Jun 6, 2018

Also can't install on 18.04

@eman1986
Copy link

@QuAzI post was the ticket, they need to replace the instructions to that as that worked perfectly

@yabozdar
Copy link

Yesterday, I ran into exactly this same problem on Lubuntu 18.10. I'll use keys according to @QuAzI later today. Let's see how it goes.

@mattiasw2
Copy link

mattiasw2 commented Apr 15, 2019

I just failed, installed on a prestine Ubuntu 18.04.2 on DigitalOcean. Below you see everything I tried to do.

Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Apr 15 13:27:45 UTC 2019

  System load:  0.24              Processes:           85
  Usage of /:   4.0% of 24.06GB   Users logged in:     0
  Memory usage: 13%               IP address for eth0: 128.199.189.181
  Swap usage:   0%

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

0 packages can be updated.
0 updates are security updates.



The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@shareasia2:~# apt updaste
E: Invalid operation updaste
root@shareasia2:~# apt update
Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu bionic/main Translation-en [516 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu bionic/restricted amd64 Packages [9184 B]
Get:7 http://mirrors.digitalocean.com/ubuntu bionic/restricted Translation-en [3584 B]
Get:8 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages [574 kB]
Get:14 http://mirrors.digitalocean.com/ubuntu bionic-updates/main Translation-en [212 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu bionic-updates/restricted amd64 Packages [6996 B]
Get:16 http://mirrors.digitalocean.com/ubuntu bionic-updates/restricted Translation-en [3076 B]
Get:17 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 Packages [756 kB]
Hit:18 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:19 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe Translation-en [201 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu bionic-updates/multiverse amd64 Packages [6388 B]
Get:21 http://mirrors.digitalocean.com/ubuntu bionic-updates/multiverse Translation-en [3452 B]
Get:22 http://mirrors.digitalocean.com/ubuntu bionic-backports/main amd64 Packages [1024 B]
Get:23 http://mirrors.digitalocean.com/ubuntu bionic-backports/main Translation-en [448 B]
Get:24 http://mirrors.digitalocean.com/ubuntu bionic-backports/universe amd64 Packages [3468 B]
Get:25 http://mirrors.digitalocean.com/ubuntu bionic-backports/universe Translation-en [1604 B]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [296 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [106 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4296 B]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2192 B]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [131 kB]
Get:31 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [74.2 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [3748 B]
Get:33 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [1952 B]
Fetched 18.2 MB in 5s (3701 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
26 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@shareasia2:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
  busybox-initramfs busybox-static grub-common grub-efi-amd64
  grub-efi-amd64-bin grub-efi-amd64-signed grub-pc-bin grub2-common libidn11
  libnss-systemd libpam-systemd libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libsystemd0 libudev1 libunistring2 open-iscsi
  policykit-1 python3-httplib2 systemd systemd-sysv udev ufw
  unattended-upgrades wget
26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.1 MB of archives.
After this operation, 29.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libnss-systemd amd64 237-3ubuntu10.19 [105 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libsystemd0 amd64 237-3ubuntu10.19 [204 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libpam-systemd amd64 237-3ubuntu10.19 [108 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 systemd amd64 237-3ubuntu10.19 [2901 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 udev amd64 237-3ubuntu10.19 [1102 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libudev1 amd64 237-3ubuntu10.19 [53.5 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 systemd-sysv amd64 237-3ubuntu10.19 [11.5 kB]
Get:8 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 open-iscsi amd64 2.0.874-5ubuntu2.7 [280 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libunistring2 amd64 0.9.9-0ubuntu2 [368 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 busybox-initramfs amd64 1:1.27.2-2ubuntu3.2 [165 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libidn11 amd64 1.33-2.1ubuntu1.2 [46.6 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 busybox-static amd64 1:1.27.2-2ubuntu3.2 [918 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 policykit-1 amd64 0.105-20ubuntu0.18.04.5 [53.5 kB]
Get:14 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libpolkit-backend-1-0 amd64 0.105-20ubuntu0.18.04.5 [36.3 kB]
Get:15 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libpolkit-agent-1-0 amd64 0.105-20ubuntu0.18.04.5 [14.9 kB]
Get:16 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 libpolkit-gobject-1-0 amd64 0.105-20ubuntu0.18.04.5 [36.4 kB]
Get:17 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 ufw all 0.36-0ubuntu0.18.04.1 [146 kB]
Get:18 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 wget amd64 1.19.4-1ubuntu2.2 [316 kB]
Get:19 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub-efi-amd64 amd64 2.02-2ubuntu8.13 [47.8 kB]
Get:20 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub2-common amd64 2.02-2ubuntu8.13 [533 kB]
Get:21 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-signed amd64 1.93.14+2.02-2ubuntu8.13 [299 kB]
Get:22 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub-efi-amd64-bin amd64 2.02-2ubuntu8.13 [654 kB]
Get:23 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub-pc-bin amd64 2.02-2ubuntu8.13 [900 kB]
Get:24 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 grub-common amd64 2.02-2ubuntu8.13 [1771 kB]
Get:25 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 python3-httplib2 all 0.9.2+dfsg-1ubuntu0.1 [28.6 kB]
Get:26 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 unattended-upgrades all 1.1ubuntu1.18.04.10 [40.4 kB]
Fetched 11.1 MB in 1s (19.4 MB/s)
Preconfiguring packages ...
(Reading database ... 60099 files and directories currently installed.)
Preparing to unpack .../libnss-systemd_237-3ubuntu10.19_amd64.deb ...
Unpacking libnss-systemd:amd64 (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Preparing to unpack .../libsystemd0_237-3ubuntu10.19_amd64.deb ...
Unpacking libsystemd0:amd64 (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Setting up libsystemd0:amd64 (237-3ubuntu10.19) ...
(Reading database ... 60099 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_237-3ubuntu10.19_amd64.deb ...
Unpacking libpam-systemd:amd64 (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Preparing to unpack .../systemd_237-3ubuntu10.19_amd64.deb ...
Unpacking systemd (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Preparing to unpack .../udev_237-3ubuntu10.19_amd64.deb ...
Unpacking udev (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Preparing to unpack .../libudev1_237-3ubuntu10.19_amd64.deb ...
Unpacking libudev1:amd64 (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Setting up libudev1:amd64 (237-3ubuntu10.19) ...
Setting up systemd (237-3ubuntu10.19) ...
(Reading database ... 60099 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_237-3ubuntu10.19_amd64.deb ...
Unpacking systemd-sysv (237-3ubuntu10.19) over (237-3ubuntu10.15) ...
Preparing to unpack .../open-iscsi_2.0.874-5ubuntu2.7_amd64.deb ...
Unpacking open-iscsi (2.0.874-5ubuntu2.7) over (2.0.874-5ubuntu2.6) ...
Preparing to unpack .../libunistring2_0.9.9-0ubuntu2_amd64.deb ...
Unpacking libunistring2:amd64 (0.9.9-0ubuntu2) over (0.9.9-0ubuntu1) ...
Setting up libunistring2:amd64 (0.9.9-0ubuntu2) ...
(Reading database ... 60099 files and directories currently installed.)
Preparing to unpack .../00-busybox-initramfs_1%3a1.27.2-2ubuntu3.2_amd64.deb ...
Unpacking busybox-initramfs (1:1.27.2-2ubuntu3.2) over (1:1.27.2-2ubuntu3.1) ...
Preparing to unpack .../01-libidn11_1.33-2.1ubuntu1.2_amd64.deb ...
Unpacking libidn11:amd64 (1.33-2.1ubuntu1.2) over (1.33-2.1ubuntu1.1) ...
Preparing to unpack .../02-busybox-static_1%3a1.27.2-2ubuntu3.2_amd64.deb ...
Unpacking busybox-static (1:1.27.2-2ubuntu3.2) over (1:1.27.2-2ubuntu3.1) ...
Preparing to unpack .../03-policykit-1_0.105-20ubuntu0.18.04.5_amd64.deb ...
Created symlink /run/systemd/system/polkit.service → /dev/null.
Unpacking policykit-1 (0.105-20ubuntu0.18.04.5) over (0.105-20ubuntu0.18.04.4) ...
Preparing to unpack .../04-libpolkit-backend-1-0_0.105-20ubuntu0.18.04.5_amd64.deb ...
Unpacking libpolkit-backend-1-0:amd64 (0.105-20ubuntu0.18.04.5) over (0.105-20ubuntu0.18.04.4) ...
Preparing to unpack .../05-libpolkit-agent-1-0_0.105-20ubuntu0.18.04.5_amd64.deb ...
Unpacking libpolkit-agent-1-0:amd64 (0.105-20ubuntu0.18.04.5) over (0.105-20ubuntu0.18.04.4) ...
Preparing to unpack .../06-libpolkit-gobject-1-0_0.105-20ubuntu0.18.04.5_amd64.deb ...
Unpacking libpolkit-gobject-1-0:amd64 (0.105-20ubuntu0.18.04.5) over (0.105-20ubuntu0.18.04.4) ...
Preparing to unpack .../07-ufw_0.36-0ubuntu0.18.04.1_all.deb ...
Unpacking ufw (0.36-0ubuntu0.18.04.1) over (0.35-5) ...
Preparing to unpack .../08-wget_1.19.4-1ubuntu2.2_amd64.deb ...
Unpacking wget (1.19.4-1ubuntu2.2) over (1.19.4-1ubuntu2.1) ...
Preparing to unpack .../09-grub-efi-amd64_2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub-efi-amd64 (2.02-2ubuntu8.13) over (2.02-2ubuntu8.12) ...
Preparing to unpack .../10-grub2-common_2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub2-common (2.02-2ubuntu8.13) over (2.02-2ubuntu8.12) ...
Preparing to unpack .../11-grub-efi-amd64-signed_1.93.14+2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub-efi-amd64-signed (1.93.14+2.02-2ubuntu8.13) over (1.93.13+2.02-2ubuntu8.12) ...
Preparing to unpack .../12-grub-efi-amd64-bin_2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.02-2ubuntu8.13) over (2.02-2ubuntu8.12) ...
Preparing to unpack .../13-grub-pc-bin_2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub-pc-bin (2.02-2ubuntu8.13) over (2.02-2ubuntu8.12) ...
Preparing to unpack .../14-grub-common_2.02-2ubuntu8.13_amd64.deb ...
Unpacking grub-common (2.02-2ubuntu8.13) over (2.02-2ubuntu8.12) ...
Preparing to unpack .../15-python3-httplib2_0.9.2+dfsg-1ubuntu0.1_all.deb ...
Unpacking python3-httplib2 (0.9.2+dfsg-1ubuntu0.1) over (0.9.2+dfsg-1) ...
Preparing to unpack .../16-unattended-upgrades_1.1ubuntu1.18.04.10_all.deb ...
Unpacking unattended-upgrades (1.1ubuntu1.18.04.10) over (1.1ubuntu1.18.04.9) ...
Setting up libnss-systemd:amd64 (237-3ubuntu10.19) ...
Setting up ufw (0.36-0ubuntu0.18.04.1) ...
Installing new version of config file /etc/default/ufw ...
Replacing config file /etc/ufw/before.rules with new version
Replacing config file /etc/ufw/before6.rules with new version
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up systemd-sysv (237-3ubuntu10.19) ...
Processing triggers for initramfs-tools (0.130ubuntu3.7) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic
Setting up busybox-initramfs (1:1.27.2-2ubuntu3.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up udev (237-3ubuntu10.19) ...
update-initramfs: deferring update (trigger activated)
Setting up grub-common (2.02-2ubuntu8.13) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up python3-httplib2 (0.9.2+dfsg-1ubuntu0.1) ...
Setting up wget (1.19.4-1ubuntu2.2) ...
Setting up unattended-upgrades (1.1ubuntu1.18.04.10) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up busybox-static (1:1.27.2-2ubuntu3.2) ...
Processing triggers for dbus (1.12.2-1ubuntu1) ...
Setting up libidn11:amd64 (1.33-2.1ubuntu1.2) ...
Processing triggers for rsyslog (8.32.0-1ubuntu4) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Setting up libpam-systemd:amd64 (237-3ubuntu10.19) ...
Setting up grub-efi-amd64-bin (2.02-2ubuntu8.13) ...
Setting up grub-pc-bin (2.02-2ubuntu8.13) ...
Setting up libpolkit-agent-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Setting up grub2-common (2.02-2ubuntu8.13) ...
Setting up open-iscsi (2.0.874-5ubuntu2.7) ...
Setting up libpolkit-backend-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Processing triggers for systemd (237-3ubuntu10.19) ...
Setting up grub-efi-amd64 (2.02-2ubuntu8.13) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-47-generic
Found initrd image: /boot/initrd.img-4.15.0-47-generic
done
Setting up policykit-1 (0.105-20ubuntu0.18.04.5) ...
Removed /run/systemd/system/polkit.service.
Setting up grub-efi-amd64-signed (1.93.14+2.02-2ubuntu8.13) ...
Processing triggers for initramfs-tools (0.130ubuntu3.7) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-47-generic
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for shim-signed (1.37~18.04.3+15+1533136590.3beb971-0ubuntu1) ...
root@shareasia2:~# ufw status
Status: inactive
root@shareasia2:~#
root@shareasia2:~# wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.debroot@shareasia2:~# sudo dpkg -i packages-microsoft-prod.deb
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 60101 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-3) ...
Setting up packages-microsoft-prod (1.0-3) ...
root@shareasia2:~# sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install aspnetcore-runtime-2.2
'universe' distribution component enabled for all sources.
Hit:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease
Get:2 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3226 B]
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Get:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [77.4 kB]
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Hit:8 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Fetched 13.8 MB in 5s (2596 kB/s)
Reading package lists... Done
root@shareasia2:~# sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.6.10).
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@shareasia2:~# sudo apt-get update
Hit:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu bionic InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Reading package lists... Done
root@shareasia2:~# sudo apt-get install aspnetcore-runtime-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
 aspnetcore-runtime-2.2 : Depends: dotnet-runtime-2.2 (>= 2.2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@shareasia2:~# sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
(Reading database ... 60106 files and directories currently installed.)
Removing packages-microsoft-prod (1.0-3) ...
Selecting previously unselected package packages-microsoft-prod.
(Reading database ... 60101 files and directories currently installed.)
Preparing to unpack packages-microsoft-prod.deb ...
Unpacking packages-microsoft-prod (1.0-3) ...
Setting up packages-microsoft-prod (1.0-3) ...
root@shareasia2:~# sudo apt-get update
Hit:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease
Hit:2 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
0% [1 InRelease gpgv 242 kB] [Waiting for headers] [Connecting to security.ubun
Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Reading package lists... Done
root@shareasia2:~# sudo apt-get install aspnetcore-runtime-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
 aspnetcore-runtime-2.2 : Depends: dotnet-runtime-2.2 (>= 2.2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@shareasia2:~# sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
'universe' distribution component is already enabled for all sources.
root@shareasia2:~# sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.6.10).
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@shareasia2:~# sudo apt-get update
Hit:1 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease
Hit:2 http://mirrors.digitalocean.com/ubuntu bionic InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 https://repos.insights.digitalocean.com/apt/do-agent main InRelease
Reading package lists... Done
root@shareasia2:~# sudo apt-get install dotnet-sdk-2.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
 dotnet-sdk-2.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.4) but it is not going to be installed
                  Depends: dotnet-runtime-2.2 (>= 2.2.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

@bartonjs
Copy link
Member

@mattiasw2 Looks like you used the feed for 16.04 instead of 18.04 on the wget step.

@mattiasw2
Copy link

Yes, you are right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests