Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to install apt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1533

PostPosted: Sun Dec 24, 2023 2:30 pm    Post subject: Unable to install apt Reply with quote

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:
>>> 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:
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:
>>> 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:
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
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31255
Location: here

PostPosted: Sun Dec 24, 2023 2:37 pm    Post subject: Reply with quote

Try to change default line with cmake_src_prepare in ebuild.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31255
Location: here

PostPosted: Sun Dec 24, 2023 2:38 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1533

PostPosted: Mon Dec 25, 2023 10:06 am    Post subject: Reply with quote

thanks for that, I believe it worked, it progresses through the compilation but then it fails with:
Code:
/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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum