apt-offline install fails

Bug #1851465 reported by Ike Panhc
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-offline (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On bionic `apt-offline install` fails with python traceback.

[Steps to reproduce]

1) sudo apt isntall -y apt-offline
2) sudo apt-offline set vim.sig --install-packages vim
3) sudo apt-offline get vim.sig --bundle vim.z
4) sudo apt-offline install vim.zip

[Expected result]

vim installed

[Actually result]

$ sudo apt-offline install vim.zip
No changelog available
(Y) Yes. Proceed with installation
(N) No, Abort.
(C) Display changelog
(?) Display this help message.
What would you like to do next: (y, N, ?)y
Proceeding with installation
vim_2%3a8.0.1453-1ubuntu1.1_amd64.deb file synced.
vim-tiny_2%3a8.0.1453-1ubuntu1.1_amd64.deb file synced.
vim-runtime_2%3a8.0.1453-1ubuntu1.1_all.deb file synced.
vim-common_2%3a8.0.1453-1ubuntu1.1_all.deb file synced.
Traceback (most recent call last):
  File "/usr/bin/apt-offline", line 28, in <module>
    main()
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 2211, in main
    args.func(args)
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 1917, in installer
    AptSecure = APTVerifySigs(Simulate=InstallerInstance.Bool_TestWindows)
  File "/usr/lib/python3/dist-packages/apt_offline_core/AptOfflineCoreLib.py", line 594, in __init__
    output = process.communicate(input=command)[0]
  File "/usr/lib/python3.6/subprocess.py", line 843, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.6/subprocess.py", line 1499, in _communicate
    input_view = memoryview(self._input)
TypeError: memoryview: a bytes-like object is required, not 'str'

Revision history for this message
Ritesh Raj Sarraf (rrs) wrote : Re: [Bug 1851465] [NEW] apt-offline install fails

Looks like it is time to make a new apt-offline release.

This bug has been reported and fixed in the upstream repository.
https://github.com/rickysarraf/apt-offline/issues/74

On Wed, 2019-11-06 at 06:45 +0000, Ike Panhc wrote:
> On bionic `apt-offline install` fails with python traceback.
>
> [Steps to reproduce]
>
> 1) sudo apt isntall -y apt-offline
> 2) sudo apt-offline set vim.sig --install-packages vim
> 3) sudo apt-offline get vim.sig --bundle vim.z
> 4) sudo apt-offline install vim.zip
>
> [Expected result]
>
> vim installed
>
> [Actually result]
>
> $ sudo apt-offline install vim.zip
> No changelog available
> (Y) Yes. Proceed with installation
> (N) No, Abort.
> (C) Display changelog
> (?) Display this help message.
> What would you like to do next: (y, N, ?)y
> Proceeding with installation
> vim_2%3a8.0.1453-1ubuntu1.1_amd64.deb file synced.
> vim-tiny_2%3a8.0.1453-1ubuntu1.1_amd64.deb file synced.
> vim-runtime_2%3a8.0.1453-1ubuntu1.1_all.deb file synced.
> vim-common_2%3a8.0.1453-1ubuntu1.1_all.deb file synced.
> Traceback (most recent call last):
> File "/usr/bin/apt-offline", line 28, in <module>
> main()
> File "/usr/lib/python3/dist-
> packages/apt_offline_core/AptOfflineCoreLib.py", line 2211, in main
> args.func(args)
> File "/usr/lib/python3/dist-
> packages/apt_offline_core/AptOfflineCoreLib.py", line 1917, in
> installer
> AptSecure =
> APTVerifySigs(Simulate=InstallerInstance.Bool_TestWindows)
> File "/usr/lib/python3/dist-
> packages/apt_offline_core/AptOfflineCoreLib.py", line 594, in
> __init__
> output = process.communicate(input=command)[0]
> File "/usr/lib/python3.6/subprocess.py", line 843, in communicate
> stdout, stderr = self._communicate(input, endtime, timeout)
> File "/usr/lib/python3.6/subprocess.py", line 1499, in _communicate
> input_view = memoryview(self._input)
> TypeError: memoryview: a bytes-like object is required, not 'str'
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-offline (Ubuntu):
status: New → Confirmed
Revision history for this message
Dietmar May (dietmar.may) wrote :

Affects at least bionic and disco - both share the same 1.8.1 version of apt-offline, which has this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.