Get Chromium On Ubuntu 20.04 WITHOUT SNAP!
1,167
Part One: Download Available Dependencies.
- Download these:
sudo apt install libgcc1 libmpx2 gcc-8-base
Part Two: Get .deb files of Chromium
- Install VirtualBox
- Run Ubuntu 18.04 in it
- Download Chromium (and dependencies) with
download-only
flag
sudo apt-get --download-only install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
- Go to
/var/cache/apt/archives
and the .deb files will be there. - Copy the deb files into a shared folder between the guest and the host OS.
- Download and install the packages.
Part 3: Disable Updates in Update Manager or other Update Software
- Running
sudo apt-mark hold chromium-browser
will disable the Updates. You will only be able to install them manually.(From new .deb packages from 18.04).
Author by
lore_caram
Updated on September 18, 2022Comments
-
lore_caram over 1 year
I'm new to python and I need to plot graphs for my university courses. I get a value error on this code and I don't know how to solve it. I have tried to convert V and m with
np.asscalar
but I don't get any improvements.ValueError: err must be a scalar or a 1D or (2, n) array-like
I think the problem is in the errorbar but I really am struggling with it.
import numpy as np from matplotlib import pyplot as plt from scipy.optimize import curve_fit m=np.array([np.loadtxt('masse.txt')]) sigma_m=np.array([np.loadtxt('errore_masse.txt')]) lati=np.array([np.loadtxt('lati.txt')]) sigma_lati=np.array(np.loadtxt('errore_lati.txt')) h=np.array([np.loadtxt('altezze.txt')]) sigma_h=np.array([np.loadtxt('errore_altezza.txt')]) dc=np.array([6.45, 8.56, 10.45, 10.46]) hc=np.array([16.25, 40.80, 75., 17.67]) lpe=np.array([8.56]) a=np.array([7.41]) hpe=np.array([37.3]) lb=np.array([10.46]) rc=dc/2 Vc=2*np.pi*a**2 *hc sigma_rc=sigma_lati/2 sigma_Vc=Vc*2*(0.01/dc) Vpe=6*lpe*a*hpe sigma_Vpe=((lpe*a)**2 *(0.01)**2 +(lpe*hpe)**2 *(0.01)**2 +(hpe*a)**2 *(0.01)**2) Vp=lb**2 sigma_Vp=2*Vp*(0.01/lb) V=np.array([np.loadtxt('volumi.txt')]) sigma_V=np.array([np.loadtxt('errore_volumi.txt')]) def line (x, a, q): """funzione retta """ return a*x+q plt.figure('Grafico massa-volume oggetti di ottone') plt.errorbar(m, sigma_m, V, sigma_V, marker='.', fmt='.') popt, pcov=curve_fit(m, V, line) a_fit, q_fit= popt sigma_a_fit, sigma_q_fit=np.sqrt(pcov.diagonal()) print(a_fit, q_fit, sigma_a_fit, sigma_q_fit) x=np.linspace(10.675, 34.080, 10) plt.plot(x, line(x, a_fit, q_fit)) plt.xlabel('Volume [mm$^3$]') plt.ylabel('Massa [g]') plt.grid (ls='dashed', which='both') plt.show()
-
David K over 4 yearsWhen I look up pyplot.errorbar the parameter list doesn't match the parameters you passed: matplotlib.org/3.1.1/api/_as_gen/… -- what version are you using?
-
Admin almost 4 yearsThere are clear directions here, not worthy of really typing an answer as it's pretty straight forward: fosspost.org/tutorials/chromium-deb-package-ubuntu-20-04
-
Admin over 3 yearsThis might be a duplicate to askubuntu.com/questions/1204571/chromium-without-snap
-
-
lore_caram over 4 yearsi checked and the shape of all four parameters in the errorbar is (1, 5), i also tried to put xerr and yerr but nothing has changed. should i try to change the shape of the parameters?
-
BenT over 4 yearsThats part of your error, you need to have a 1D array not 2D. You can remove the 1 by indexing the values like
m[0]
,V[0]
and so on -
BenT over 4 yearsYou are welcome, consider upvoting or marking the question as answered so others can benefit.
-
Mikel almost 4 yearsThis seems overly complicated. And you won't get security updates.
-
TheAlphaReturns almost 4 yearsOnly Chromium is going to be on pause. You can get .deb's from 18.04 to update it manually. If you update it from here, it will install as a snap.
-
Mikel almost 4 yearsDid you already read askubuntu.com/questions/1204571/chromium-without-snap ? That approach seems simpler and more secure to me
-
Melroy van den Berg over 3 yearsNo Freaking way.. people. This is not the way to use a browser. Just download if from the Debian repo.