How install gcc with deb

Robert Heller heller at
Sat Nov 17 15:16:24 UTC 2018

If the OP has access to a networked machine running the same version of 
Ubuntu, it is possible to use "apt-get install -d ..." to populate 
networked machine's /var/cache/apt/archives and then use a "sneaker net" to 
populate the non-networked machine's /var/cache/apt/archives and then do an 
"apt-get install ..."  Apt-get will then use the already downloaded files 
without needing to access the networ.

Another option would be to use (large) removable drive as a mirror, populating 
with debmirror on a networked machine and transporting the removable drive to 
the non networked machine and suitably hacking the list files in 
/etc/apt/lists...  I don't know if you need to actually install apache on the 
off-line machine (the URLs then become localhost://ubuntu...) or if you can 
use URLs like file:///mirrordrive/ubuntu... -- I do this for some Ubuntu VMs 
on my CentOS 6 host, which already has apache installed for web development 

At Sat, 17 Nov 2018 15:08:03 +0100 "Ubuntu user technical support,  not for general discussions" <ubuntu-users at> wrote:

> Oops, sent using the wrong email address:
> Begin forwarded message:
> Date: Sat, 17 Nov 2018 14:56:14 +0100
> From: Ralf Mardorf <ralf.mardorf at>
> To: "ubuntu-users" <ubuntu-users-bounces at>
> Subject: Fw: How install gcc with deb
> I didn't notice that the OP is a cross-post idiot in the first place.
> Begin forwarded message:
> Date: Sat, 17 Nov 2018 14:53:43 +0100
> From: Ralf Mardorf <ralf.mardorf at>
> To: ubuntu-devel-discuss at
> Subject: Re: How install gcc with deb
> On Sat, 17 Nov 2018 13:11:57 +0000, Caipenghui wrote:
> >  My computer is loaded with   ubuntu18.04 LTS, but my computer is not
> > connected to the Internet, so I can't install GCC online. So I have a
> > network in another computer from
> > download deb
> > into the u disk to install on my Ubuntu 18.04.
> >
> >  What's the use of deb? How does deb install GCC?I know that deb
> > can't solve the dependency problem, what can we do?     
> Hi,
> actually this is a question that belongs to
> You not necessarily just could download and install this package, if the
> hard dependencies should have changed, too and assuming some
> "soname" [1] things should have changed within the dependency chain, you
> at least need to download what is marked as "depends" at
> and everything those
> dependencies depend on and so on and so on, too.
> Nowadays there's no need to use dpkg or gdebi workarounds, everything
> could be done using apt, but the dependency pitfall still remains.
> Note! If you download everything required for the gcc dependency chain,
> it still could break packages that depend on something of this chain,
> too.
> An upgrade of something that fundamental without fulfilling
> dependencies and dependencies of dependencies and other packages that
> depend on it without an Internet connection, is something you should
> avoid. OTOH since Ubuntu is a release model distro that apart from
> something like browsers stays with major releases, there _should_ be at
> least no "soname" issues. Regarding GTK 3 the major release means
> nothing at all and breakage usually happens within major releases.
> Regarding GCC you probably could upgrade without much worry regarding
> "soname" issues, but it's not necessarily smart to do this by ignoring
> the work of the distro maintainers.
> IOW you could try to run
>   sudo apt install /path/to/package
> (with an Internet connection, this would replace 'gdebi')
> or
>   sudo dpkg -i /path/to/package
> but I recommend against both of it.
> Regards,
> Ralf
> [1]

Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services  -- Linux Administration Services
heller at       -- Webhosting Services

More information about the ubuntu-users mailing list