Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Unable to install apt

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Adel Ahmed
Veteran
Veteran
Posts: 1616
Joined: Fri Sep 21, 2012 7:59 am

Unable to install apt

  • Quote

Post by Adel Ahmed » Sun Dec 24, 2023 2:30 pm

I have enabled the kaa repository to install the apt command, but then I found that the ebuild was very old and referencing an old source file:

Code: Select all

>>> Emerging (1 of 1) sys-apps/apt-1.4.6::kaa
>>> Downloading 'http://distfiles.gentoo.org/distfiles/a3/apt_1.4.6.tar.xz'
--2023-12-24 16:19:38--  http://distfiles.gentoo.org/distfiles/a3/apt_1.4.6.tar.xz
Resolving distfiles.gentoo.org... 195.181.170.19, 156.146.33.138, 156.146.33.141, ...
Connecting to distfiles.gentoo.org|195.181.170.19|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-12-24 16:19:39 ERROR 404: Not Found.

>>> Downloading 'http://http.debian.net/debian/pool/main/a/apt/apt_1.4.6.tar.xz'
--2023-12-24 16:19:39--  http://http.debian.net/debian/pool/main/a/apt/apt_1.4.6.tar.xz
Resolving http.debian.net... 199.232.82.132
Connecting to http.debian.net|199.232.82.132|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://deb.debian.org/debian/pool/main/a/apt/apt_1.4.6.tar.xz [following]
--2023-12-24 16:19:39--  http://deb.debian.org/debian/pool/main/a/apt/apt_1.4.6.tar.xz
Resolving deb.debian.org... 199.232.82.132
Connecting to deb.debian.org|199.232.82.132|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-12-24 16:19:39 ERROR 404: Not Found.
I tried tricking the system into downloading and installing using the same ebuild, so I renamed the ebuild to a version that exists (1.8.2.3) and ran:

Code: Select all

cd /var/db/repos/kaa/sys-apps/apt
mv apt-1.4.6.ebuild apt-1.8.2.3.ebuild
ebuild apt-1.8.2.3.ebuild manifest


and now I'm getting:

Code: Select all

>>> Emerging (1 of 1) sys-apps/apt-1.8.2.3::kaa
 * apt_1.8.2.3.tar.xz BLAKE2B SHA512 size ;-) ...                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking apt_1.8.2.3.tar.xz to /var/tmp/portage/sys-apps/apt-1.8.2.3/work
>>> Source unpacked in /var/tmp/portage/sys-apps/apt-1.8.2.3/work
>>> Preparing source in /var/tmp/portage/sys-apps/apt-1.8.2.3/work/apt-1.8.2.3 ...
/var/tmp/portage/sys-apps/apt-1.8.2.3/temp/environment: line 2110: epatch: command not found
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/apt-1.8.2.3/work/apt-1.8.2.3 ...
 * ERROR: sys-apps/apt-1.8.2.3::kaa failed (configure phase):
 *   FATAL: cmake_src_prepare has not been run
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_configure
 *   environment, line 2102:  Called cmake_src_configure
 *   environment, line  864:  Called die
 * The specific snippet of code:
 *       [[ -n ${_CMAKE_SRC_PREPARE_HAS_RUN} ]] || die "FATAL: cmake_src_prepare has not been run";
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/apt-1.8.2.3::kaa'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/apt-1.8.2.3::kaa'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/apt-1.8.2.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/apt-1.8.2.3/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/apt-1.8.2.3/work/apt-1.8.2.3'
 * S: '/var/tmp/portage/sys-apps/apt-1.8.2.3/work/apt-1.8.2.3'
any idea how to fix this or to get the apt command working? I need it to run the runescape installer script:

Code: Select all

sudo -s -- << EOF
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add -
mkdir -p /etc/apt/sources.list.d
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list
apt-get update
apt-get install -y runescape-launcher
EOF
thanks
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Dec 24, 2023 2:37 pm

Try to change default line with cmake_src_prepare in ebuild.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Sun Dec 24, 2023 2:38 pm

Moved from Portage & Programming to Unsupported Software.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Adel Ahmed
Veteran
Veteran
Posts: 1616
Joined: Fri Sep 21, 2012 7:59 am

  • Quote

Post by Adel Ahmed » Mon Dec 25, 2023 10:06 am

thanks for that, I believe it worked, it progresses through the compilation but then it fails with:

Code: Select all

/var/tmp/portage/sys-apps/apt-1.8.2.3/work/apt-1.8.2.3/test/interactive-helper/aptwebserver.cc:36:55: error: variable 'constexpr const std::array<std::array<const char*, 2>, 6> htmlencode' has initializer but incomplete type
   36 |    constexpr std::array<std::array<char const *,2>,6> htmlencode = {{
      |                                                       ^~~~~~~~~~
any idea how this error can be solved?

thanks
Top
Post Reply

4 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic