stop my raspberry pi rerouting every internet connection through brave.onion [closed] - networking

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 days ago.
Improve this question
So last year I set up my pi to use the brave onion, but I totally cannot remember how i did this..
When i try install any app:
Unable to locate package fswebcam
and when running sudo apt update I get the following output:
The repository 'https://brave-browser-apt-beta.s3.brave4u7~~~2v72qd.onion stable Release' does not have a Release file.
pi#pi:~ $ sudo apt update
Ign:1 https://brave-browser-apt-beta.s3.brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion stable InRelease
Err:2 https://brave-browser-apt-beta.s3.brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion stable Release
Direct connection to .onion domains is blocked by default.
Get:3 http://deb.debian.org/debian bullseye InRelease [116 kB]
Hit:4 https://brave-browser-apt-nightly.s3.brave.com stable InRelease
Hit:5 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:6 https://repo.nordvpn.com/deb/nordvpn/debian stable InRelease
Hit:7 https://brave-browser-apt-release.s3.brave.com stable InRelease
Err:3 http://deb.debian.org/debian bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 605C66F00D6C9793
Reading package lists... Done
E: The repository 'https://brave-browser-apt-beta.s3.brave4u7jddbv7cyviptqjc7jusxh72uik7zt6adtckl5f4nwy2v72qd.onion stable 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.
W: GPG error: http://deb.debian.org/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 605C66F00D6C9793
E: The repository 'http://deb.debian.org/debian bullseye InRelease' is not signed.
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.

Related

How to install SOME OF suggested packeges, but NOT ALL OF THEM? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 10 hours ago.
Improve this question
When i use
sudo apt install <package> --install-suggests
this will install ALL of suggested packages. But i dont want to install all of them. I want to exclude some suggested packages, and not install them
Example:
sudo apt install vlc
it suggest 4 packages, and install 35 packages.
sudo apt install vlc --install-suggests
will install 219 packages!
I think, that --install-suggests takes action not only to installation of furst vlc package, but to all of the dependencies, so dependencies has they oun 'suggestions', and so on...
I expected, that --install-suggests not will be applied to install dependencies, recomenations and suggests, but only to
a far from ideal solution of this problem:
I installed 'vls' by sudo apt install vlc(35 packages at all),
then i do sudo apt remove vlc(removed 1 package 'vlc'),
and after that i used command sudo apt install vlc --install-suggests(it installed 'vlc' and 3 suggested packages).

Unable to install R version 4.2.0 on Ubuntu 18.04,may be did some mistakes in the process of upgrading from the older version of R version 3.6.3

I already had R version 3.6.3 but for running package (DESeq2) in RStudio, it was showing to install R version 4.2.0.
In this process of installing the latest version of R. I have uninstalled both the R and rstudio. Now when I am trying to install R version 4.2.0. It showing errors. I may have done some mistakes during this whole process.
Underneath I am attaching the errors and code I have run in the terminal of Ubuntu 18.04.
pkd#pkd-HP-Z4-G4-Workstation:~$ sudo apt install r-base
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:
r-base : Depends: r-base-core (>= 4.2.0-1.2204.0) but it is not going to be installed
Depends: r-recommended (= 4.2.0-1.2204.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
More of the Error log:
pkd#pkd-HP-Z4-G4-Workstation:~$ sudo add-apt-repository ppa:marutter/rrutter
Hit:1 https://desktop-download.mendeley.com/download/apt stable InRelease
Get:9 http://ppa.launchpad.net/marutter/rrutter/ubuntu bionic InRelease [15.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Err:10 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
Get:13 http://ppa.launchpad.net/marutter/rrutter/ubuntu bionic/main amd64 Packages [984 B]
Get:15 http://ppa.launchpad.net/marutter/rrutter/ubuntu bionic/main Translation-en [928 B]
Reading package lists... Done
W: GPG error: https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
E: The repository 'https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease' is not signed.
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.

Installing R Studio on Ubuntu 22.04

I installed Ubuntu 22.04 and R. Now I'm trying to install R Studio.
After download it I tried to install with
sudo gdebi rstudio-2022.02.1-461-amd64.deb
But I received the message
Dependency is not satisfiable: libssl1.0.0|libssl1.0.2|libssl1.1
Is there any way to work around it?
So I had the same problem about the "Dependency is not satisfiable",
You can just update Rstudio with the last daily update
https://dailies.rstudio.com/
Edit #1: I've solved the dependency problem by going to https://packages.debian.org/bullseye/amd64/libssl1.1/download and installing 'libssl1.1' from there. Unfortunately, I've encountered another problem; I'll post another edit as soon as I've solved it, or if I've given up on trying to solve it.
Edit #2: I've solved the aforementioned problem by running rstudio --no-sandbox to open RStudio.
My Original Answer:
This isn't a solution, but I have the same problem. I was missing 'libclang-dev' and 'libpq5' as well, but I was able to get them via sudo apt install. I couldn't get 'libssl1.1', however:
Package libssl1.1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1.1' has no installation candidate
I tried 'libssl1.0.2' and 'libssl1.0.0' as well, but got the same result. After doing some research and trying out different things, I found that I have 'libssl3'; I suspect that having a more recent version of 'libssl' is related to the problem, but I'm not an expert on this stuff and it could just be a stupid guess for all I know.
Also, when I run sudo apt install -f ./rstudio-2022.02.1-461-amd64.deb, I get:
The following packages have unmet dependencies.
rstudio : Depends: libssl1.0.0 but it is not installable or
libssl1.0.2 but it is not installable or
libssl1.1 but it is not installable
E: Unable to correct problems, you have held broken packages.
I initially ran sudo dpkg -i rstudio-2022.02.1-461-amd64.deb, and I had to run sudo apt --fix-broken install afterwards; it was after then that I tried and successfully installed the two other missing packages. Yep, I basically don't know what I'm doing and I just try solving these technological problems through trial and error, although I've almost never been as stumped as I am now.
I don't have a good enough reputation to comment, apparently, so posting an 'answer'. I have installed RStudio on 22.04 without problem (well, not without problem--I have to add some startup paramters to make it load properly on Wayland). Here's what APT reports as available for me:
$ apt-cache search libssl | grep libssl1
libssl1.1 - Secure Sockets Layer toolkit - shared libraries
And it seems to be installed okay:
$ dpkg -s libssl1.1
Package: libssl1.1
Status: install ok installed
Priority: important
Section: libs
Installed-Size: 4057
Maintainer: Ubuntu Developers <ubuntu-devel-discuss#lists.ubuntu.com>
Architecture: amd64
Multi-Arch: same
Source: openssl
Version: 1.1.1l-1ubuntu1.2
Depends: libc6 (>= 2.34), debconf (>= 0.5) | debconf-2.0
Breaks: isync (<< 1.3.0-2), lighttpd (<< 1.4.49-2), python-boto (<< 2.44.0-1.1), python-httplib2 (<< 0.11.3-1), python-imaplib2 (<< 2.57-5), python3-boto (<< 2.44.0-1.1), python3-imaplib2 (<< 2.57-5)
Description: Secure Sockets Layer toolkit - shared libraries
This package is part of the OpenSSL project's implementation of the SSL
and TLS cryptographic protocols for secure communication over the
Internet.
.
It provides the libssl and libcrypto shared libraries.
Homepage: https://www.openssl.org/
Original-Maintainer: Debian OpenSSL Team <pkg-openssl-devel#lists.alioth.debian.org>
Are you able to confirm you have the same candidate package listed? Maybe your APT sources didn't update correctly? Here's what's currently in my /etc/apt/sources.list file:
deb http://nz.archive.ubuntu.com/ubuntu/ jammy main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://nz.archive.ubuntu.com/ubuntu/ jammy universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://nz.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://nz.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
If yours is the same, maybe you have something in /etc/apt/sources.list.d that should have been disabled on upgrade and wasn't?
The issue is already solved in the daily code since 27th of April. Install any daily after that and it works. No news yet of when stable version will be released though.
The missing libraries may now be installed from libssl1.1_1.1.1l-1ubuntu1.3_amd64.deb, which may now be found on https://ubuntu.pkgs.org/21.10/ubuntu-updtes-main-amd64/.
I have used Arronax to add --no-sandbox to the command-line, in rstudio.desktop, in place of --disable-seccomp-filter-sandbox which did not work.

How to install R on Ubuntu 21.10

I just bought a new machine and made a fresh installation of Ubuntu 21.10 since I've read that the newer kernel works better with graphics drivers. I'm planning to update to the 22.04 LTS when it will be available. I didn't realize, however, that I might run into challenges with R.
There are plenty of questions here in SO on installing R on Ubuntu, but none seemed recent enough to address the Ubuntu version 21.10.
Ubuntu Packages For R - Full Instructions state that
As of May 19, 2021 the supported releases are
Hirsute Hippo (21.04, amd64 only)
Groovy Gorilla (20.10, amd64 only),
Focal Fossa (20.04; LTS and amd64 only),
Bionic Beaver (18.04; LTS), and
Xenial Xerus (16.04; LTS).
So, if I understand correctly, I have three options:
Uninstall 21.10 and replace with 21.04
Wait for support for 21.10
Install R from source
Now, the question is, have I understood correctly, or could I use, for example, the 21.04 repository (hirsute-cran40/)?
Apparently, it is ok to use a repository of older releases.
I was encouraged by Andre Wildeberg (thanks!) and added the 21.04 repository (hirsute-cran40/) into my /etc/apt/sources.list:
deb https://cloud.r-project.org/bin/linux/ubuntu hirsute-cran40/
Then, you can follow the rest of the CRAN instructions.
Add the relevant GPG key (under "Secure APT", half way through the document):
$ 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
Finally, install R:
$ sudo apt-get update
$ sudo apt-get install r-base
And everything should be working fine.
You need a newer signing key for that repo:
root:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.MsSJzqgwfx/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
gpg: key 51716619E084DAB9: "Michael Rutter <marutter#gmail.com>" 1 new signature
gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
gpg: can't connect to the agent: No such file or directory
gpg: Total number processed: 1
gpg: new signatures: 1
root:~# apt update
Get:1 https://cloud.r-project.org/bin/linux/ubuntu hirsute-cran40/ InRelease [3628 B]
Get:2 http://security.ubuntu.com/ubuntu impish-security InRelease [110 kB]
Hit:3 http://archive.ubuntu.com/ubuntu impish InRelease
Get:4 http://archive.ubuntu.com/ubuntu impish-updates InRelease [110 kB]
Get:5 http://archive.ubuntu.com/ubuntu impish-backports InRelease [101 kB]
Fetched 325 kB in 1s (422 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
root:#
One you have that, impish works fine. That said, hirsute binaries should work too (or even focal binaries, as one does with the 5000+ r-cran-* binaries the 'cran2deb4ubuntu' repo for the LTS release).

Install R 3.1.2 on Wheezy 7.8 (Raspbian) fails

I'm a newbie to Linux and try to install the latest R version on my Raspberry.
My Raspberry runs on Wheezy 7.8.
I followed instructions on CRAN, so I
added
deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/
to /etc/apt/sources.list
ran apt-get update which was successful and gave me only a "signature error" for the public key as pointed out on the CRAN-site
ran apt-get install r-base
But the result of the last command is
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:
r-base : Depends: r-base-core (>= 3.1.2-1~wheezycran3.0) but it is not going to be installed
Depends: r-recommended (= 3.1.2-1~wheezycran3.0) but it is not going to be installed
Recommends: r-base-html but it is not going to be installed
Recommends: r-doc-html but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried to install R-2.15 before and then run the above commands. R-2.15 could be installed successfuly, but I'd need R-3* really.
I did browse the web, but couldn't find any useful hints for my specific problem, so I appreciate any support you could give me.
Thanks!
If it is of any use:
apt-cache policy r-base gives
r-base:
Installed: (none)
Candidate: 3.1.2-1~wheezycran3.0
Version table:
3.1.2-1~wheezycran3.0 0
500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
3.1.0-1~wheezycran3.0 0
500 http://cran.rstudio.com/bin/linux/debian/ wheezy-cran3/ Packages
2.15.1-4 0
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
apt-cache policy r-base-core gives
r-base-core:
Installed: (none)
Candidate: 2.15.1-4
Version table:
2.15.1-4 0
500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages
uname -a gives
Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan 30 18:19:07 GMT 2015 armv6l GNU/Linux
I had the same situation and decided to install that from the source code instead of install R from the repository(apt-get command).
Here is the command I run on my Raspberry Pi 2.
I could install and run R(3.1.2) sucessfully.
It might not be complete answer for you because I might already installed the library like gcc you did not have before. If you encounter the other issue, please let me know. I would like to solve it.
Just as a side note on this topic, because sudo make install process took a long time(maybe over a hour. I'm not sure because I feel asleep before I knew it...), I recommend you to do this when you have enough or before going to sleep like me.
wget http://cran.rstudio.com/src/base/R-3/R-3.1.2.tar.gz
mkdir R_HOME
mv R-3.1.2.tar.gz R_HOME/
cd R_HOME/
tar zxvf R-3.1.2.tar.gz
cd R-3.1.2/
sudo apt-get install gfortran libreadline6-dev libx11-dev libxt-dev
./configure
make
sudo make install
R
The cause of your problem is likely that the cran repository provides armel versions of the packages, and not armhf (which is the expected architecture for your RPI). If this is right, then you have two solutions:
The first work-around could be to download the armel version of the packages and then force their installation despite the architecture mismatch. It is supposed to work according to the Debian wiki, although you may experience performance issues:
The CPU in the Raspberry Pi implements the ARMv6 ISA (with VFP2) and
is thus incompatible with the Debian armhf port baseline of ARMv7+VFP3
and ARM hardware-floating-point ports for other distributions, which
all have the same baseline. It is compatible with Debian armel
(armv4t, soft(emulated) FP), but floating-point tasks will be slow
when running the Debian armel port.
To do that, you can try to reinstall the packages by specifying the armel architecture, for example:
apt-get install r-base:armel
If it doesn't work this way, you can otherwise download the packages from http://cran.r-project.org/bin/linux/debian/wheezy-cran3/ and install them manually using a commandline like:
dpkg --install --force-architecture xxxx_armel.deb yyyy_armel.deb zzzz_armel.deb
The other solution would be to compile R from its source.
I solved my initial question by upgrading Wheezy to Jessie. I am not an expert, but Jessie seems to be the current testing version of Debian, while Wheezy is the stable release - see here.
For upgrading, I followed the instructions here, or here, or here. Note: Upgrading takes quite a while and during the process you're required to answer some questions.
A word of caution though: Jessie is still testing and some people recommend not to use it yet, for a discussion see e.g. here.
I did set it up completely from a new completely new image, and it works well.
After having upgraded to Jessie I installed R-3.1.1. using
sudo apt-get install r-base
And I'd like to thank all those who have answered my question and given alternative ways of solving the problem above.
I'm able to install R-3.1.2 into raspbian using answer from teramonagi. I confirm it can install successfully on Raspberry Pi model B/B+.
However, before you can actually use R (install packages and run some R scripts), you have to increase the swap file size for Raspberry Pi due to lack of RAM (This service works very similar to page file in window, it kicks in when RAM usage is high). You can configure it by edit one of the config file by enter command below in LX terminal.
sudo nano /etc/dphys-swapfile
CONF_SWAPSIZE=100 #(change 100 to 512 or 1024, up to you, save the file)
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start #(restart swap file service with new swap file size)
Take note though, some users argued that increase swap file size can actually ruin your SD card. So apply this change at your own risk. I've been running my Pi with this configuration for my R automation for 1 month now. No issue so far.
Hope this helps.
Edit: If you are using model B/B+, i recommend to configure swap file size first then compile R.
That's what I've done to update my r-base on wheezy:
HOW TO UPDATE r-base 2.15 to 3.x ON DEBIAN WHEEZY
add these lines at the end of "/etc/apt/sources.list"
deb http://cran.revolutionanalytics.com/bin/linux/debian wheezy-cran3/
deb-src http://cran.revolutionanalytics.com/bin/linux/debian wheezy-cran3/
add the missing publich key of cran
gpg --keyserver pgpkeys.mit.edu --recv-key 06F90DE5381BA480
gpg -a --export 06F90DE5381BA480 | sudo apt-key add -
update and upgrade
apt-get update
aptitude -t wheezy-cran3 install r-base r-base-dev

Resources