maestrogerardo / i3-gaps-deb

Tool to create and install Debian (or Ubuntu) packages of i3-gaps.
GNU General Public License v3.0
313 stars 46 forks source link

Which sources should we add to sources.list when prompted? #4

Closed enricozb closed 7 years ago

enricozb commented 7 years ago

When I tried running your script, I got

Please add necessary "deb-src" line(s) to your sources.list (and run an update).

I'm unsure which sources to add. I'm on Ubuntu 16.04. Thanks for the awesome tool btw, setting up i3-gaps is always a small time sink.

maestrogerardo commented 7 years ago

Hi enricozb,

normally you would need to have the following two lines in your sources.list:

deb http://de.archive.ubuntu.com/ubuntu xenial main universe
deb-src http://de.archive.ubuntu.com/ubuntu xenial main universe

Unfortunatelly, Xenial does not provide the Debian package "libxcb-xrm-dev", which is needed to build i3-gaps.

Because of that, i3-gaps-deb only supports Ubuntu versions >= yakketi, see README.

Regards, Gerhard

enricozb commented 7 years ago

So here is my situation. I have a fresh install of 17.04, which is >= yakketi. I then installed git, and vim.

I cloned your repo, then added

deb http://us.archive.ubuntu.com/ubuntu/ zesty main universe
deb-src http://us.archive.ubuntu.com/ubuntu/ zesty main universe

to /etc/apt/sources.list. Then, after running i3-gaps-dep, I received

[igd] This tool creates (and optionally installs) Debian packages of i3-gaps... [RETURN]
[igd] This tool comes without any warranty and in the hope to be useful... [RETURN]
[igd] Checking i3 installation...
[igd] Checking sources.list(s) to contain sources ("weak")...
[igd] Debian version != jessie, ignoring special treatment...
[igd] Installing (basic) build dependencies... [RETURN]
Reading package lists... Done
W: Target Sources (universe/source/Sources) is configured multiple times in /etc/apt/sources.list:9 and /etc/apt/sources.list:20
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:8
W: Target Packages (universe/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target Packages (universe/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target Packages (universe/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target Translations (universe/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target Translations (universe/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target DEP-11 (universe/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target DEP-11 (universe/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
W: Target DEP-11-icons (universe/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:8 and /etc/apt/sources.list:19
E: You must put some 'source' URIs in your sources.list

I'm not super sure what I have done incorrectly here... Thank you for this tool, it's always a pain to install i3.

maestrogerardo commented 7 years ago

Hi enricozb,

did you ran the mentioned update after editing the sources.list file (e.g. via sudo apt update)?

enricozb commented 7 years ago

Whoops! That was my mistake. It's all working now. Thanks for the awesome tool!

maestrogerardo commented 7 years ago

You're welcome! 👍

123-123-nil commented 3 years ago

This ask Ubuntu thread helped me to solve this issue in Ubuntu 20.10.

realtica commented 3 years ago

Which sources should we add for Raspbian??