[SOLVED] new install of Stretch - cannot 'apt-key add'

If none of the more specific forums is the right place to ask

[SOLVED] new install of Stretch - cannot 'apt-key add'

Postby OneCD » 2017-07-01 20:08

Hello.

After my Jessie install decided to end-it-all yesterday after an update, I installed Stretch and was pleasantly surprised to find that Plasma 5 window management now works correctly with multiple-monitors. ;)

I'm configuring everything again from scratch rather than try to import all my previous stuff.

Now trying to install VirtualBox as per the wiki and I'm getting this:
Code: Select all
$ sudo apt-key add oracle_vbox_2016.asc
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

I then found this post and tried:
Code: Select all
sudo apt-get install debian-keyring debian-archive-keyring
... but still no success.

Also found this which suggests it may be a corrupt (/etc/apt/trusted.gpg) but I've had no success follow the instructions by the author. :(

Can anyone assist here? Thanks.
Last edited by OneCD on 2017-07-02 16:59, edited 1 time in total.
Stuff I like: Apache BASH CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress XFCE
User avatar
OneCD
 
Posts: 4
Joined: 2017-07-01 19:41
Location: over there, behind that sofa...

Re: New install of Stretch - cannot 'apt-key add'

Postby acewiza » 2017-07-01 20:28

You might try:
Code: Select all
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

From the Oracle instructions here: https://www.virtualbox.org/wiki/Linux_Downloads
Nobody would ever ask questions If everyone possessed encyclopedic knowledge of the man pages.
User avatar
acewiza
 
Posts: 212
Joined: 2013-05-28 12:38
Location: Out West

Re: New install of Stretch - cannot 'apt-key add'

Postby OneCD » 2017-07-01 21:15

Code: Select all
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Stuff I like: Apache BASH CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress XFCE
User avatar
OneCD
 
Posts: 4
Joined: 2017-07-01 19:41
Location: over there, behind that sofa...

Re: New install of Stretch - cannot 'apt-key add'

Postby kedaha » 2017-07-01 22:22

I ran through the instructions as per the wiki –although I don't use sudo–and the key gets okayed.
Code: Select all
# curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3157  100  3157    0     0   2411      0  0:00:01  0:00:01 --:--:--  2413
root@debian:/home/user#  apt-key add oracle_vbox_2016.asc
OK

And after updating the sources simulated the installation with aptitude:
Code: Select all
# aptitude install -s virtualbox-5.1
The following NEW packages will be installed:
  binutils{a} gcc{a} gcc-6{a} libasan3{a} libc-dev-bin{a} libc6-dev{a}
  libcc1-0{a} libcilkrts5{a} libgcc-6-dev{a} libitm1{a} liblsan0{a}
  libmpx2{a} libqt5opengl5{a} libqt5printsupport5{a} libqt5x11extras5{a}
  libsdl-ttf2.0-0{a} libtsan0{a} libubsan0{a} linux-compiler-gcc-6-x86{a}
  linux-headers-4.9.0-3-amd64{a} linux-headers-4.9.0-3-common{a}
  linux-headers-amd64{a} linux-kbuild-4.9{a} linux-libc-dev{a} make{a}
  manpages-dev{a} virtualbox-5.1
The following packages will be upgraded:
  libc6
1 packages upgraded, 27 newly installed, 0 to remove and 7 not upgraded.
Need to get 98.6 MB of archives. After unpacking 308 MB will be used.

Note: Using 'Simulate' mode.
Do you want to continue? [Y/n/?]
User avatar
kedaha
 
Posts: 2610
Joined: 2008-05-24 12:26

Re: New install of Stretch - cannot 'apt-key add'

Postby OneCD » 2017-07-01 23:04

Okiedoke, so who can tell me what's wrong with my new Stretch install then? ;)
Stuff I like: Apache BASH CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress XFCE
User avatar
OneCD
 
Posts: 4
Joined: 2017-07-01 19:41
Location: over there, behind that sofa...

Re: New install of Stretch - cannot 'apt-key add'

Postby OneCD » 2017-07-02 16:58

Fixed.

Code: Select all
$ sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.bak
$ curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3157  100  3157    0     0   1017      0  0:00:03  0:00:03 --:--:--  1017

Code: Select all
$ sudo apt-key add oracle_vbox_2016.asc
OK

Code: Select all
$ sudo apt-get update
Hit:1 http://download.virtualbox.org/virtualbox/debian stretch InRelease
Hit:2 http://security.debian.org stable/updates InRelease
Ign:3 http://debian.mirror.digitalpacific.com.au/debian stable InRelease
Hit:4 http://debian.mirror.digitalpacific.com.au/debian stable Release
Reading package lists... Done

Code: Select all
$ sudo apt-get install virtualbox-5.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libsdl-ttf2.0-0
Recommended packages:
  linux-image
The following NEW packages will be installed:
  libsdl-ttf2.0-0 virtualbox-5.1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.3 MB of archives.
After this operation, 163 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.virtualbox.org/virtualbox/debian stretch/contrib amd64 virtualbox-5.1 amd64 5.1.22-115126~Debian~stretch [66.2 MB]
Get:2 http://debian.mirror.digitalpacific.com.au/debian stable/main amd64 libsdl-ttf2.0-0 amd64 2.0.11-3+b1 [18.6 kB]
Fetched 66.3 MB in 2min 8s (516 kB/s)                                                                                                                       
Preconfiguring packages ...
Selecting previously unselected package virtualbox-5.1.
(Reading database ... 146952 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.1_5.1.22-115126~Debian~stretch_amd64.deb ...
Unpacking virtualbox-5.1 (5.1.22-115126~Debian~stretch) ...
Selecting previously unselected package libsdl-ttf2.0-0:amd64.
Preparing to unpack .../libsdl-ttf2.0-0_2.0.11-3+b1_amd64.deb ...
Unpacking libsdl-ttf2.0-0:amd64 (2.0.11-3+b1) ...
Processing triggers for mime-support (3.60) ...
Setting up virtualbox-5.1 (5.1.22-115126~Debian~stretch) ...
Adding group `vboxusers' (GID 119) ...
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
Setting up libsdl-ttf2.0-0:amd64 (2.0.11-3+b1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25) ...
Processing triggers for shared-mime-info (1.8-1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for hicolor-icon-theme (0.15-1) ...

Thank you guys for your suggestions. :D
Stuff I like: Apache BASH CouchPotato CRON Debian DNSMasq Entware-3x FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo S20 Python Raspberry Pi RAID SABnzbd+ SickRage Transmission Ubuntu Usenet VirtualBox WordPress XFCE
User avatar
OneCD
 
Posts: 4
Joined: 2017-07-01 19:41
Location: over there, behind that sofa...


Return to General Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable