Get Chromium On Ubuntu 20.04 WITHOUT SNAP!

1,167

Part One: Download Available Dependencies.

  1. Download these:
sudo apt install libgcc1 libmpx2 gcc-8-base

Part Two: Get .deb files of Chromium

  1. Install VirtualBox
  2. Run Ubuntu 18.04 in it
  3. Download Chromium (and dependencies) with download-only flag
sudo apt-get --download-only install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra
  1. Go to /var/cache/apt/archives and the .deb files will be there.
  2. Copy the deb files into a shared folder between the guest and the host OS.
  3. Download and install the packages.

Part 3: Disable Updates in Update Manager or other Update Software

  1. 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).

Share:
1,167
lore_caram
Author by

lore_caram

Updated on September 18, 2022

Comments

  • lore_caram
    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()
    
  • lore_caram
    lore_caram over 4 years
    i 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
    BenT over 4 years
    Thats 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
    BenT over 4 years
    You are welcome, consider upvoting or marking the question as answered so others can benefit.
  • Mikel
    Mikel almost 4 years
    This seems overly complicated. And you won't get security updates.
  • TheAlphaReturns
    TheAlphaReturns almost 4 years
    Only 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
    Mikel almost 4 years
    Did you already read askubuntu.com/questions/1204571/chromium-without-snap ? That approach seems simpler and more secure to me
  • Melroy van den Berg
    Melroy van den Berg over 3 years
    No Freaking way.. people. This is not the way to use a browser. Just download if from the Debian repo.