Web lists-archives.com

Re: need google chrome installation instructions that work




On Wed 21 Nov 2018 at 11:44:02 (-0800), Patrick Bartek wrote:
> On Wed, 21 Nov 2018 11:21:15 -0500
> Greg Wooledge <wooledg@xxxxxxxxxxx> wrote:
> > On Wed, Nov 21, 2018 at 08:02:23AM -0800, Patrick Bartek wrote:
> > > I use gdebi (it's in the repos) to install locally saved .deb files.
> > > Apt-get won't install local files, that is, not in a repo.  
> > 
> > Yes, it will.  But you have to supply the filename with a
> > leading / or ./ or ../ prefix.
> > 
> > sudo apt-get install ./google-chrome-stable*.deb
> 
> That never worked for me.  I've tried. Numerous times. Even with
> complete paths, changing to directory where file was, full names, etc.,
> etc. Both with Wheezy & Stretch. Read somewhere when troubleshooting,
> apt-get wouldn't install local .deb.  Only way it would was if you
> created a local repo and put it in your sources.list. Too much
> trouble. That's why I starting using gdebi for those very rare times
> I need to.
> 
> Don't know if apt does.  Never tried.

It works fine for me, as shown by the output below. However, I notice
there's a line:

Note, selecting 'xtoolwait' instead of ' … … /xtoolwait_1.3-6.2_amd64.deb'

which could suggest that the internals of the .deb file are being
taken account of; I haven't studied the output from strace.
xtoolwait is a legitimate Debian package, but it hasn't been available
since squeeze.

I also haven't checked wheezy: all this could postdate wheezy/jessie anyway.
For a full path, the output from apt and apt-get is identical (except that
apt produces a progress bar, which is later overwritten).

-----

Full path succeeds:

~# apt-get install /home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'xtoolwait' instead of '/home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb'
The following NEW packages will be installed:
  xtoolwait
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/13.1 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 /home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb xtoolwait amd64 1.3-6.2 [13.1 kB]
Retrieving bug reports... Done 
Parsing Found/Fixed information... Done
Selecting previously unselected package xtoolwait.
(Reading database ... 261615 files and directories currently installed.)
Preparing to unpack .../xtoolwait_1.3-6.2_amd64.deb ...
Unpacking xtoolwait (1.3-6.2) ...
Setting up xtoolwait (1.3-6.2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Scanning processes...                                                                               
Scanning linux images...                                                                            
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
N: Download is performed unsandboxed as root as file '/home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
~# 

-----

Filename alone fails:

/home/debian/squeeze# apt-get install xtoolwait_1.3-6.2_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package xtoolwait_1.3-6.2_amd64.deb
E: Couldn't find any package by glob 'xtoolwait_1.3-6.2_amd64.deb'
E: Couldn't find any package by regex 'xtoolwait_1.3-6.2_amd64.deb'
100 /home/debian/squeeze# 

-----

./ path succeeds (and ../ likewise):

/home/debian/squeeze# apt-get install ./xtoolwait_1.3-6.2_amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'xtoolwait' instead of './xtoolwait_1.3-6.2_amd64.deb'
The following NEW packages will be installed:
  xtoolwait
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/13.1 kB of archives.
After this operation, 77.8 kB of additional disk space will be used.
Get:1 /home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb xtoolwait amd64 1.3-6.2 [13.1 kB]
Retrieving bug reports... Done 
Parsing Found/Fixed information... Done
Selecting previously unselected package xtoolwait.
(Reading database ... 261615 files and directories currently installed.)
Preparing to unpack .../xtoolwait_1.3-6.2_amd64.deb ...
Unpacking xtoolwait (1.3-6.2) ...
Setting up xtoolwait (1.3-6.2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Scanning processes...                                                                               
Scanning linux images...                                                                            
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
N: Download is performed unsandboxed as root as file '/home/debian/squeeze/xtoolwait_1.3-6.2_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
/home/debian/squeeze# 

-----

Cheers,
David.